[R] Reading multiple .csv-files and assigning them to variable names

2010-10-29 Thread Sarah Moens
Hi all, I've been trying to find a solution for the problem of reading multiple files and storing them in a variable that contains the names by which I want to call the datasets later on. For example (5 filenames): - The filenames are stored in one variable: filenames = paste(paste('name', '_',

Re: [R] Reading multiple .csv-files and assigning them to variable names

2010-10-29 Thread jim holtman
Read them into a list; much easier to handle: myList - lapply(filenames, read.csv) On Fri, Oct 29, 2010 at 5:16 AM, Sarah Moens sara...@telenet.be wrote: Hi all, I've been trying to find a solution for the problem of reading multiple files and storing them in a variable that contains the

Re: [R] Reading multiple .csv-files and assigning them to variable names

2010-10-29 Thread Gabor Grothendieck
On Fri, Oct 29, 2010 at 5:16 AM, Sarah Moens sara...@telenet.be wrote: Hi all, I've been trying to find a solution for the problem of reading multiple files and storing them in a variable that contains the names by which I want to call the datasets later on. For example (5 filenames): -