[R] create library for own datasets

Gabor Grothendieck ggrothendieck at gmail.com
Tue Feb 19 18:10:14 CET 2008


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.
>



More information about the R-help mailing list