[Rd] aggregate(empty data.frame) (PR#13167)

From: <prokaj_at_cs.elte.hu>
Date: Wed, 15 Oct 2008 09:05:04 +0200 (CEST)


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_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Wed 15 Oct 2008 - 10:03:22 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 15 Oct 2008 - 16:30:20 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive