Loading an .RData file and assigning the loaded objects within a loop
use 'lapply' to read in the .RData file. Therefore each file is stored as an element of a list thatb you can access and change as necessary. Sent from my iPad
On Jun 1, 2013, at 6:18, Jeremy Ng <jeremy.ng.wk1990 at gmail.com> wrote:
Hi all, I tried to look this up online, but am still feeling a little stuck. I have a bunch of Rdata files in side my directory, and I would like to load all of them in a loop. Each time the next is read in, it would over-write the previously read in object because they will be assigned the same workspace object name. Is there anyway for each individually read in Rdata object to be assigned a new name? Thanks! JEremy [[alternative HTML version deleted]]
______________________________________________ R-help at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.