Skip to content
Prev 295670 / 398502 Next

Reading a bunch of csv files into R

Hello,

Or maybe put the data frames in a list

df.list <- lapply(seq_len(filenames), read.csv, ...) # '...other...' are 
options you might want to pass, (like headers=TRUE)
names(df.list) <- data_names

Now access the data frames by number in the list or by name in data_names.

Hope this helps,

Rui Barradas
Em 25-05-2012 20:08, Nutter, Benjamin escreveu: