resave: Add some objects to an existing '.Rdata' - type file.

Description Usage Arguments Value Note Author(s) See Also Examples

Description

Take an existing myfile.Rdata data file and add the specified objects to it. This is achieved by opening the data file in a local environment, "dumping" the new objects into that environment, and re-saving everything to the same file name.

Usage

1

Arguments

...

Names of objects to save.

list

A list of names of the objects to save. Can be used with or without any named arguments in ...

file

The name of the file to open and add items to.

Value

Nothing is returned. This function is used solely to put objects into the file.

Note

Code is essentially the same as that provided by "flodel", http://www.linkedin.com/in/florentdelmotte , on StackOverflow.

Author(s)

Carl Witthoft carl@witthoft.com

See Also

lsdata , save, load

Examples

1
2
3
4
5
6
foo<-1:4
bar<-5:8
save(foo,file='foo.Rdata')
resave(bar,file='foo.Rdata')
#check your work
lsdata('foo.Rdata')


Search within the cgwtools package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.