[R] Data frame to list?
David Winsemius
dwinsemius at comcast.net
Thu Aug 11 14:51:04 CEST 2011
On Aug 11, 2011, at 8:24 AM, Michael Karol wrote:
> Perhaps the split() function would do.
Something like split(dfrm, 1:nrow(dfrm)) or split(dfrm, rownames(dfrm))
--
>
> Regards,
> Michael
>
> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org
> ] On Behalf Of Jonathan Greenberg
> Sent: Wednesday, August 10, 2011 10:36 PM
> To: r-help
> Subject: [R] Data frame to list?
>
> R-helpers:
>
> Is there an easy way to transfer a data frame to a list, where each
> list element is a dataframe containing a single row from the original
> data frame?
>
> --j
David Winsemius, MD
West Hartford, CT
More information about the R-help
mailing list