You might want to look at the datasets package
as an example:
https://svn.r-project.org/R/trunk/src/library/datasets/
The other way is to save() them in an .rda file and then
just load() the file.
On Feb 19, 2008 10:20 AM, Birgit Lemcke <birgit.lemcke at systbot.uzh.ch>
wrote:> I am using the recent R version on a G4 PowerBook with Mac OS X 10.4.11.
>
> I have a bunch of datasets that I would like to put all together in a
> R library, so that I only have to type:
> >library("name")
> and all datasets are loaded. Is this like building a package or is
> there an easier way to do that?
>
> Thanks in advance for your help.
>
> B.
>
> Birgit Lemcke
> Institut f?r Systematische Botanik
> Zollikerstrasse 107
> CH-8008 Z?rich
> Switzerland
> Ph: +41 (0)44 634 8351
> birgit.lemcke at systbot.uzh.ch
>
> 175 Jahre UZH
> ?staunen.erleben.begreifen. Naturwissenschaft zum Anfassen.?
> MNF-Jubil?umsevent f?r gross und klein.
> 19. April 2008, 10.00 Uhr bis 02.00 Uhr
> Campus Irchel, Winterthurerstrasse 190, 8057 Z?rich
> Weitere Informationen www.175jahre.uzh.ch
>
> ______________________________________________
> 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.
>