[R] saving a matrix

PIKAL Petr petr.pikal at precheza.cz
Thu May 2 11:30:28 CEST 2013


Hi

just before generation of a matrix use set.seed.

Or save this matrix by saveRDS.

Petr

> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-
> project.org] On Behalf Of Preetam Pal
> Sent: Thursday, May 02, 2013 9:47 AM
> To: r-help at r-project.org
> Subject: [R] saving a matrix
> 
> Hi all,
> 
> In my data analysis,
> 
> I have created a random matrix M ( of order 500 X 7).
> 
> I want to use the same matrix when I start a new session, or suppose I
> want to send this matrix to one of my friends (because  this matrix is
> randomly generated, and I dont want to use any other 500X7 matrix
> randomly generated by R).
> 
> How can I  save and call this matrix in the later sessions as well?
> 
> Appreciate your help.
> 
> Thanks,
> Preetam
> 
> --
> Preetam Pal
> (+91)-9432212774
> M-Stat 2nd Year,                                             Room No.
> N-114
> Statistics Division,
> C.V.Raman
> Hall
> Indian Statistical Institute,                                 B.H.O.S.
> Kolkata.
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> 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.



More information about the R-help mailing list