Re: [R] using eval-parse-paste in a loop

From: Erik Iverson <iverson_at_biostat.wisc.edu>
Date: Tue, 26 Feb 2008 11:34:51 -0600

Michael -

>
> 3. Equally, advice about a better approach would also be v. welcome.
>

As an alternative approach, you may want to save the sheet names in a list and then use the lapply function to read your data into a list. This would greatly reduce the 'clutter' of objects in your global environment, and then let you apply analysis functions to each sheet with subsequent usage of the *apply functions.

Best,
Erik Iverson



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 Tue 26 Feb 2008 - 17:37:20 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 Tue 26 Feb 2008 - 18:30:16 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