Re: [R] Process dataframes from list

2008-10-27 Thread Gábor Csárdi
On Mon, Oct 27, 2008 at 2:24 PM, Wade Wall <[EMAIL PROTECTED]> wrote: > 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 so

Re: [R] Process dataframes from list

2008-10-27 Thread Wade Wall
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[

Re: [R] Process dataframes from list

2008-10-26 Thread hadley wickham
You might want to have a look at the plyr package - http://had.co.nz/plyr. The intro pdf describes a couple of problems that are similar to yours. Hadley On Sun, Oct 26, 2008 at 3:10 PM, Wade Wall <[EMAIL PROTECTED]> wrote: > Hi all, > > I have roughly fifty dataframes and a dataframe with the n

Re: [R] Process dataframes from list

2008-10-26 Thread Kaom Te
I think you need to be a bit more specific on this one. What is the format of your data.frames? On disk or actually in your workspace? Example code would also help. Even psuedo code describing what you want to do. Regards, Kaom On Oct 26, 2008, at 1:10 PM, Wade Wall wrote: Hi all,

Re: [R] Process dataframes from list

2008-10-26 Thread Gábor Csárdi
Wade, from your description it is not clear to me whether you have fifty _R objects_ or fifty files containing tables (i.e. data frames). If the former, you can do something like a <- data.frame(1:10) b <- data.frame(10:1) c <- data.frame(letters[1:20]) my.data.frames <- data.frame( name=c("a", "

[R] Process dataframes from list

2008-10-26 Thread Wade Wall
Hi all, I have roughly fifty dataframes and a dataframe with the names of the fifty dataframes. I want to perform the same set of manipulations on all fifty dataframes, but can't find a way to batch process from a list with the dataframe names using a loop. Is there a way to read the file names f