[R] managing .RData

fan@katan.cybercom.net fan at katan.cybercom.net
Thu Aug 19 19:26:42 CEST 1999


Unlike in S-plus, the datasets for R are in a single file .RData. Consequently,
it becomes hard to clean the objects after it grew too big.
In particular, I wonder
  o how to locate the objects with big sizes (and then delete them) 
    among hundreds of objects (output of ls()). In Splus on UNIX, I use ls in
    the shell to work on this, since objects correspond to separate UNIX files.
    For R, this must be worked on differently.
  o how to add another database (data + functions) in the search path.
    In Splus, I use
    attach("directory/.Data")
    This way, I could keep the 
    It seems not work in R. 
    Error: attach only works for lists and data frames

    Creating a library will be one solution. Some data are not permanent.
    Are there some simple commands to expand the search path?

If you had similar experiences and have found a way, please let me know. 
Regards

Fan
  

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