[R] Process dataframes from list

Wade Wall wade.wall at gmail.com
Mon Oct 27 14:24:13 CET 2008


Hi Gabor,

Thanks for the code, it's what I was looking for.  The route I was
thinking about was to use, based on your code, the names from
my.data.frames as a pointer to the actually dataframes.

I was envisioning something like

a <- data.frame(1:10)
b <- data.frame(10:1)
c <- data.frame(letters[1:20])
my.data.frames <- c("a", "b", "c")

for (i in length(my.data.frames)) {
   function(my.data.frames[[i]]*, arguments)
   }

     with my.data.frame[[i]]* acting as a pointer to the actual data.frame.

Is it possible to create pointers from a list of data frame names to
the actual data frames?

Thanks for the help.

Wade



More information about the R-help mailing list