Re: [R] Counting number of datasets and appending them

2010-12-29 Thread Jorge Ivan Velez
Hi Grace, Try something along the lines of do.call(rbind, lapply(1:maxi, function(x) get(paste('data', x, sep = "" HTH, Jorge On Wed, Dec 29, 2010 at 5:06 PM, Li, Grace <> wrote: > Hi there, > > I have a question on how to read a bunch of dataset, assign each of the > dataset to a matrix

[R] Counting number of datasets and appending them

2010-12-29 Thread Li, Grace
Hi there, I have a question on how to read a bunch of dataset, assign each of the dataset to a matrix in the memory, and append them. Suppose I have 20 dataset saved to different .rda files named gradeFileData1, gradeFileData2,, gradeFileData20. And I would like to read them each into a