Convert a list of N dataframes to N dataframes
On Mon, Dec 7, 2009 at 1:06 PM, Mark Na <mtb954 at gmail.com> wrote:
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)
ldply(datalist) should be adequate. Hadley