Re: [R] importing many csv files into separate matrices

2013-12-04 Thread Greg Snow
As you have noticed, using assign is not simple, and your approach has potential to cause even more problems even if you get it working. Here is another approach: loadCSVfiles - function(path) { x - list.files(path, full.names=TRUE) out - lapply( x, read.csv ) names(out) -

Re: [R] importing many csv files into separate matrices

2013-12-04 Thread Henrik Bengtsson
On Wed, Dec 4, 2013 at 6:53 PM, Greg Snow 538...@gmail.com wrote: As you have noticed, using assign is not simple, and your approach has potential to cause even more problems even if you get it working. Here is another approach: loadCSVfiles - function(path) { x - list.files(path,

Re: [R] importing many csv files into separate matrices

2013-11-28 Thread David Winsemius
On Nov 27, 2013, at 2:39 PM, yetik serbest wrote: Hi Everyone, I am trying to import many CSV files to their own matrices. Example, alaska_93.csv to alaska. When I execute the following, for each csv.file separately it is successful. singleCSVFile2Matrix - function(x,path) {

[R] importing many csv files into separate matrices

2013-11-27 Thread yetik serbest
Hi Everyone,   I am trying to import many CSV files to their own matrices. Example, alaska_93.csv to alaska. When I execute the following, for each csv.file separately it is successful.   singleCSVFile2Matrix - function(x,path) {