search for: saveobj

Displaying 2 results from an estimated 2 matches for "saveobj".

2007 Oct 01
1
saving and loading complex objects
...r save. example directory: amex 8 meg argentina 12 meg australia 16 meg ... Moreover, I am unable to read these file objects back into R. I note that readBin and writeBin are only for single mode data such as numeric. Here is a section of my program or script: SaveObj = function( x, nn ) { pp=paste( "C://Program Files//R//R-2.5.1//arima//",nn, sep="") pp=paste( "save( x, file=", sQuote(pp),")", sep="" ) eval(parse(text=pp)) } # end of function: SaveObj load( file="C://Program Files//R//R-2.5.1//arima//am...
2012 Jul 28
1
using save() to work with objects that exceed memory capacity
...uot;)' retrieves the correct matrix, with the original name 'mat'. Further, if I instead save it this way: > objectname<-"mat" > save(list=ls(pattern=objectname), file="matfile") then I get the same positive result. But now suppose I create a function > saveobj <- function(objectname,objectfile) + { + save(list=ls(pattern=objectname),file=objectfile); + return()}; Then if I now try to save 'mat' by > matname<-"mat" > saveobj(matname,"matfile") I do not get the same result; namely, the command 'load(&qu...