This help topic is for R version 0.60. For the current version of R, try https://stat.ethz.ch/R-manual/R-patched/library/base/html/save.html
save {base}R Documentation

Save R Objects

Description

save writes a external representation of R objects to the specified file. The objects can be read back from the file at a later date by using the function load.

Usage

save(..., list = character(0), file = "", ascii = FALSE)

Arguments

...

the names of the objects to be saved.

list

A character vector containing the names of objects to be saved.

file

the name of the file where the data will be saved.

ascii

if TRUE, an ASCII representation of the data is written. This is useful for transporting data between machines of different types. The default value of ascii is FALSE which leads to a more compact binary file being written.

See Also

dput, dump, load.

Examples

save(x, y, file = "xy.Rdata")
save(list = ls(), file = "all.Rdata")

[Package base version 0.60 ]