save data to an R object
Hi,
Here is one option:
#some sample dataframes
df1 <- data.frame(letter=letters[1:3], number=1:3)
df1 <- data.frame(letter=letters[4:6], number=4:6)
#save the dataframes
save(df1, df2, file="test.Rda")
#load them in another session
load("test.Rda")
> df1
letter number
1 a 1
2 b 2
3 c 3
> df2
letter number
1 d 4
2 e 5
3 f 6
Is that what you're looking for?
Ivan
Le 3/17/2010 11:56, cheba meier a ?crit :
Dear R people, Is it possible to save three data sets in an R object and to call each data from this object independently! Regards, Cheba [[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.
Ivan CALANDRA PhD Student University of Hamburg Biozentrum Grindel und Zoologisches Museum Abt. S?ugetiere Martin-Luther-King-Platz 3 D-20146 Hamburg, GERMANY +49(0)40 42838 6231 ivan.calandra at uni-hamburg.de ********** http://www.for771.uni-bonn.de http://webapp5.rrz.uni-hamburg.de/mammals/eng/mitarbeiter.php