[R] R:how to separate stuff?

Prof Brian Ripley ripley at stats.ox.ac.uk
Fri Jul 16 13:17:43 CEST 1999


> Date: Fri, 16 Jul 1999 12:48:52 +0200 (MET DST)
> From: Agustin Lobo <alobo at ija.csic.es>
> 
> 
> Thanks for your help on moving files from
> S+ to R and on attaching directories.
> 
> If attaching directories is NOT possible in R,
> is there any other way to separate
> objects into different folders or something similar?
> For example, to keep user functions for multivariate
> analysis in a different "place" than user functions on 
> time series, or to keep data objects of project_1 
> in a different place than data objects of project_2.
> 
> Also, where does R put the objects that are saved? 
> in .Rdata? Could not be possible to have different .Rdata
> (.Rdata_1, .Rdata_2...) ?

You have more or less answered the question: you can save groups
of objects by the save() command and load them again by the load()
command.  That is `all' the save and restore of .RData does (and
save.image is a wrapper to save to save all current objects).

However, what you seem really to want to do is the purpose of packages:
put different groups of functions and datasets in your own packages.
You can have a private library of packages: the `folders' are the the
packages.

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list