Code covered by the BSD License  

Highlights from
saveR

5.0

5.0 | 1 rating Rate this file 12 Downloads (last 30 days) File Size: 1.69 KB File ID: #28370

saveR

by Jeroen Janssens

 

03 Aug 2010

Save workspace variables to an R data file.

| Watch this File

File Information
Description

saveR('FILENAME') saves all workspace variables to the "R-file" named FILENAME.

SAVER('FILENAME', 'X', 'Y', 'Z') saves X, Y, and Z.

saveR can handle scalars, vectors, matrices, and cell arrays of strings. NaN's are saved as NA. Since R cannot handle structures, they will not be saved and a warning will be given.

Useful if you do not wish to load variables directly in R using a COM based interface (using MATLAB R-link #5051) or if you wish to use JAGS (http://sourceforge.net/projects/mcmc-jags), for instance.

Acknowledgements

The author wishes to acknowledge the following in the creation of this submission:
MATLAB R-link

MATLAB release MATLAB 7.9 (2009b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
10 Aug 2010 David

Great file! A simple and fast way to move everything to R--saved me tons of time trying to import from R.

NOTICE: after the workspace is saved in the R path it must be loaded using the source('filename') function.
 load('filename') can only be used on variables saved with the save('filename') function and will throw and error in this case.

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
r cran Jeroen Janssens 03 Aug 2010 10:36:15
jags Jeroen Janssens 03 Aug 2010 10:36:15
save Jeroen Janssens 03 Aug 2010 10:36:16
convert Jeroen Janssens 03 Aug 2010 10:36:16

Contact us at files@mathworks.com