[R] Noob question - Identity argument within aggregate function?

knavero knavero at gmail.com
Fri Mar 2 21:51:54 CET 2012


>aggregate(z, identity, mean)
  1   2   3   4   5 
1.0 3.0 5.0 6.0 7.5 
> aggregate(z, mean)
Error: length(time(x)) == length(by[[1]]) is not TRUE

Can someone help me understand the error above and why "identity" is
necessary to satisfy the error




--
View this message in context: http://r.789695.n4.nabble.com/Noob-question-Identity-argument-within-aggregate-function-tp4439806p4439806.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list