search for: 37597770

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

Did you mean: 375770
2011 Feb 25
4
Error
...#order by developer_id and year f<- function(x) { unlist(lapply(x, FUN = function(z) cumsum(z) - z)) } DF<-cbind(DF[,c(1:3)],ave(DF[, c(4:5)],DF$B, FUN = f)) I get the following error: Error in `[<-.data.frame`(`*tmp*`, i, , value = integer(0)) : replacement has 0 items, need 37597770 In addition: Warning message: In max(i) : no non-missing arguments to max; returning -Inf The dimensions of the data frame are (50000,108), so the last line of the script becomes: DF<-cbind(DF[,c(1:3)],ave(DF[, c(4:108)],DF$B, FUN = f)) Any idea how to solve this problem? Thanks! -- View...