Its a FAQ: http://cran.r-project.org/doc/FAQ/R-FAQ.html#How-can-I-turn-a-string-into-a-variable_003f
On Sat, Nov 1, 2008 at 7:54 PM, Lo, Ken <[EMAIL PROTECTED]> wrote: > Hi all, > > I know this is an idiotic question, but I am trying to iterate through a > list of data.frame using ls (I have named the data frames in a way that > lets me subset them with ls(pattern="test", for example). But ls > returns a character vector. How to I refer to the data frames by their > names in the list instead of the actual string? > > Thanks a bunch. > > Ken > > ______________________________________________ > 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. > ______________________________________________ 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.