Dears, is there a way to append R objects similar to the function save() to a binary file that already consists some previously saved R objects? I browsed the mailing list archive and only found some suggestions that include reading in the old file first and then saving the new objects together with the old ones. This would not be handy for me as my data is rather large. I have tried dump() but this does not seem to compress my data. Cheers Jannis
Jens Oehlschlägel
2010-May-25 18:36 UTC
[R] appending objects to file created with save()
If you work with large data you might want to look at the ff package - useful if your data is close or above your RAM. The package has ffsave where with option add=TRUE you can add data to an existing ff archive. With ff data is stored outside of R in files, only meta-data is stored within R. An ff archive consists of two files, a zip file which stores the data (and to which you can add) and a standard .RData file which stores the meta-data using standard save(). HTH Jens -----Urspr?ngliche Nachricht----- Von: Jannis <bt_jannis at yahoo.de> Gesendet: May 25, 2010 8:22:26 PM An: r-help at r-project.org Betreff: [R] appending objects to file created with save()>Dears, > > >is there a way to append R objects similar to the function save() to a binary file that already consists some previously saved R objects? > >I browsed the mailing list archive and only found some suggestions that include reading in the old file first and then saving the new objects together with the old ones. This would not be handy for me as my data is rather large. > >I have tried dump() but this does not seem to compress my data. > > >Cheers >Jannis > > > >______________________________________________ >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.