[R] Data frame to list?

Michael Karol MKarol at syntapharma.com
Thu Aug 11 14:24:53 CEST 2011


Perhaps the split() function would do.

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

-- 
Jonathan A. Greenberg, PhD
Assistant Project Scientist
Center for Spatial Technologies and Remote Sensing (CSTARS)
Department of Land, Air and Water Resources
University of California, Davis
One Shields Avenue
Davis, CA 95616
Phone: 415-763-5476
AIM: jgrn307, MSN: jgrn307 at hotmail.com, Gchat: jgrn307

______________________________________________
R-help at 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.



More information about the R-help mailing list