Re: [R] split dataframe to several dataframes in R

2015-02-17 Thread Zilefac Elvis via R-help
Great! Thanks, Aravind. On Monday, February 16, 2015 10:50 PM, Aravind Jayaraman wrote: Hi, I think you need not split the data.frame to get the desired result. You can work with your list lst4 itself. #Convert the vectors in the list to data.frames. lst4 <- lapply(lst4, function(x

Re: [R] split dataframe to several dataframes in R

2015-02-17 Thread Zilefac Elvis via R-help
Great! many thanks, Chris and Bert. On Tuesday, February 17, 2015 8:29 AM, Bert Gunter wrote: Inline. -- Bert Bert Gunter Genentech Nonclinical Biostatistics (650) 467-7374 "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." Clifford Sto

Re: [R] split dataframe to several dataframes in R

2015-02-17 Thread Bert Gunter
Inline. -- Bert Bert Gunter Genentech Nonclinical Biostatistics (650) 467-7374 "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." Clifford Stoll On Tue, Feb 17, 2015 at 1:33 AM, Chris Campbell wrote: > # Assuming you want to create many data fram

Re: [R] split dataframe to several dataframes in R

2015-02-17 Thread Chris Campbell
# Assuming you want to create many data frames, you can use # assign to create new objects. newDFNames <- unique(means$source) newDFNames # [1] "iris1.csv" "iris2.csv" for (nm in newDFNames) { assi

Re: [R] split dataframe to several dataframes in R

2015-02-16 Thread Aravind Jayaraman
Hi, I think you need not split the data.frame to get the desired result. You can work with your list lst4 itself. #Convert the vectors in the list to data.frames. lst4 <- lapply(lst4, function(x) {as.data.frame(t(iris1.csv))}) #Get the data.frames in the list to the global environment list2env(ls