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-boun...@r-project.org [mailto:r-help-boun...@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

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to