[R] creating a list of dataframes
lord12
trexinsd at yahoo.com
Fri Dec 3 20:07:33 CET 2010
I am iterating through multiple files and storing dataframes in a list. I
want to perform calculations on these dataframes. How would I go about doing
this?
I do:
num_files<- list.files()
list = c()
for(x in num_files)
{
frame = read.table(x)
list = c(list, assign(paste("frame",x),frame))
}
For each row in each data frame I want to calculate the correlation between
the rows. How do I do this?
--
View this message in context: http://r.789695.n4.nabble.com/creating-a-list-of-dataframes-tp3071598p3071598.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list