Saving a data file in R

I have successfully uploaded the .txt file to R. I want to save the data so that I can use it actively. What is a command to save a file? Can I save the file in one of the existing packages (UseR, MASS) or as a separate file?

+5
source share
2 answers

The team you are looking for is either one of the following:

  • save(): saves the specified objects as R objects (extension .RData). These files are binary and can be read very quickly usingload()
  • write(): This is a wrapper for cat()and is used to create text files from objects, usually matrices.
  • write.table()and write.csv(): these are commands for writing data frames as text files with a specific delimiter.

sink(), ( ).

R:

http://cran.r-project.org/doc/manuals/R-intro.pdf

http://cran.r-project.org/other-docs.html

:

+15

- , , .txt? txt (.. ), . , -/ .txt?

, , /, script, , , .txt. script script, , .

/ , , , R ( save()) @Joris Meys.

+2

All Articles