aggregate(empty data.frame) (PR#13167)
Full_Name: Vilmos Prokaj Version: R-2..7.1 OS: Win XP Submission from: (NULL) (157.181.227.218) The 'aggregate' function on an empty data.frame generate an error, however it should return according to the documentation an empty data.frame. e.g. z<-data.frame(a=integer(0),b=numeric(0)) aggregate(z,by=z[1],FUN=sum) In a more realistic situation 'z' is of the form z<-zz[cond,] where cond is a computed logical vector and zz is not empty data.frame.