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]]
?list "Intro to R" That is what a list is for. On Wed, Mar 17, 2010 at 6:56 AM, cheba meier <cheba.meier@googlemail.com>wrote:> 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@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<http://www.r-project.org/posting-guide.html> > and provide commented, minimal, self-contained, reproducible code. >-- Jim Holtman Cincinnati, OH +1 513 646 9390 What is the problem that you are trying to solve? [[alternative HTML version deleted]]
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
Hi r-help-bounces at r-project.org napsal dne 17.03.2010 11:56:45:> Dear R people, > > Is it possible to save three data sets in an R object and to call eachdata> from this object independently!?list Regards Petr> > 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 guidehttp://www.R-project.org/posting-guide.html> and provide commented, minimal, self-contained, reproducible code.