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.

______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel

Reply via email to