Skip to content
Back to formatted view

Raw Message

Message-ID: <1291403253029-3071598.post@n4.nabble.com>
Date: 2010-12-03T19:07:33Z
From: lord12
Subject: creating a list of dataframes

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.