Hello, I have used the following command: datalist<-list(data1,data2,data3,data4,data5,data6) to make a list of my dataframes, which I then manipulated with these commands: datalist<-llply(datalist,"LogDepth") datalist<-llply(datalist,"LogArea") datalist<-llply(datalist,"p") datalist<-llply(datalist,"Exp") datalist<-llply(datalist,"s") This worked very nicely (thanks for plyr, Hadley) but now I would like to "unlist" my list into the individual dataframes, preferably with their original names (data1, etc). I've tried to do this with:> ldply(datalist,unlist)but that's not working. Any help with this would be much appreciated. Thanks, Mark [[alternative HTML version deleted]]
Karl Ove Hufthammer
2009-Dec-09 11:15 UTC
[R] Convert a list of N dataframes to N dataframes
On Mon, 7 Dec 2009 13:23:06 -0600 Mark Na <mtb954 at gmail.com> wrote:> This worked very nicely (thanks for plyr, Hadley) but now I would like to > "unlist" my list into the individual dataframes, preferably with their > original names (data1, etc). > > I've tried to do this with: > > > ldply(datalist,unlist)Are you perhaps looking for ?attach ? -- Karl Ove Hufthammer