search for: 4.854731

Displaying 1 result from an estimated 1 matches for "4.854731".

Did you mean: 0.84731
2007 Jul 09
1
why function 'sum' within 'aggregate' need an 'index'?
Hi, people. I am using R-2.5.0 now, when tried the function aggregate with sum, it showed an error as following: > a <- gl(3,10) > b <- rnorm(30) > aggregate(b,list(a),sum) # here is the error message, it complained that an error in FUN(X[[1L]], missing "INDEX", and no defaults value. but the tapply function will be okay. > tapply(b,list(a),sum) 1 2