[R] Merging vector data into one file

2010-01-31 Thread Mark Altaweel
Hi, I had another question. If you had say a vector (e.g., called data) with 235 elements and each element looked like the following data[[1]] Column A-BColumn Z-SColumn A-S 1 25 ... data[[2]] Column Z-BColumn A-SColumn

Re: [R] Loading data from folder

2010-01-31 Thread Mark Altaweel
Ou can use 'choose.dir()' to get the directory: files <- list.files(path=yourDir) result <- do.call(rbind, lapply(files, read.csv)) On Sun, Jan 31, 2010 at 9:10 PM, Mark Altaweel wrote: Hi, I am trying to load csv type data from a folder. However, rather than syntax that simpl

[R] Loading data from folder

2010-01-31 Thread Mark Altaweel
Hi, I am trying to load csv type data from a folder. However, rather than syntax that simply loads one file at a time I was wondering if there is a method that loads all data from a specific folder. For instance, I have the following data files in a folder nebraskaStats: 10-1-2009_10-7-2009.