Re: [R] Scripting issues

From: Greg Snow <Greg.Snow_at_imail.org>
Date: Fri, 11 Jan 2008 21:40:12 -0700

How about making a list of data frames, then you can use either a loop (mylist[[i]]) or often simpler to use the lapply and sapply functions.


From: r-help-bounces_at_r-project.org on behalf of dave mitchell Sent: Fri 1/11/2008 11:14 AM
To: r-help_at_r-project.org
Subject: [R] Scripting issues

Users,
I am currently running scripts on a rather large dataset. Many times I sort the data into smaller datasets and must analyze them individually. My instincts are to make a for loop, but I can't seem to find a way to index each sub-dataset (data frames as the case would have it). I would make an array, however, the data types of the columns are different and as I understand, an array cannot handle this type of structure. Any advice on how to do this? Any help is greatly appreciated.

Thank you,
Dave Mitchell

        [[alternative HTML version deleted]]



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.

        [[alternative HTML version deleted]]



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. Received on Sat 12 Jan 2008 - 04:44:17 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 Sat 12 Jan 2008 - 05:30:06 GMT.

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

list of date sections of archive