[R] How to save the variables in R to a file

Christian Ruckert cruckert at uni-muenster.de
Mon Apr 6 11:19:47 CEST 2009


Cetinyürek Aysun schrieb:
> Dear list members,
> 
> I have f.mean matrix of size 500 X 83 in R, and I want to save this into a
> file.
> I used the command
> save("f.mean.Rdata",file="D:/Users/Ays/Documents/Results")
> it saves but when I open the file in notepad it is just some characters
> meaningless.

The purpose of save is to save R objects to a file so you can retrieve 
them later or on another system via the load command.

I think what you are looking for is the write.table command. See 
help(write.table).

Greetings,
Christian




More information about the R-help mailing list