[R] use a data frame whose name is stored as a string variable?
sjmyers at syr.edu
Sat Jun 26 02:10:57 CEST 2010
Let's say I have a data frame (called "example") with numeric values stored
(columns V1 and V2). I also have a string variable storing this name
Is there a way to use the variable x so that R knows that I want the
specified action to occur on the data frame? For example, summary (x) would
return a summary of the data frame?
I am considering this because I need to compare many data frames within 2
nested for loops. In the first iteration of the loop I could concatenate x
and 1 and then use it to represent the data frame. I'm open to a better
solution. Thanks, Seth Myers
View this message in context: http://r.789695.n4.nabble.com/use-a-data-frame-whose-name-is-stored-as-a-string-variable-tp2269095p2269095.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help