Re: [R] Convert a "by" list into a data frame

From: Gabor Grothendieck <>
Date: Mon 27 Jun 2005 - 12:32:43 EST

On 6/26/05, Tudor Bodea <> wrote:
> Dear useRs,
> Is there a way to convert a list generated by "by" command into a data frame?

Here is an example which creates a by object whose elements are the first row of each Species of iris. The next line converts that to a data frame:

   by.object <- by(iris, iris$Species, head, 1)"rbind", by.object) mailing list PLEASE do read the posting guide! Received on Mon Jun 27 12:36:36 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:33:03 EST