Learn R Programming

Tmisc (version 1.0.1)

saveit: Rename objects while saving.

Description

Allows you to rename objects as you save them. See https://stackoverflow.com/a/21248218/654296.

Allows you to rename objects as you save them. See https://stackoverflow.com/a/21248218/654296.

Usage

saveit(..., file = stop("'file' must be specified"))

saveit(..., file = stop("'file' must be specified"))

Arguments

...

Objects to save.

file

Filename/path where data will be saved.

Examples

Run this code
if (FALSE) {
foo <- 1
saveit(bar=foo, file="foobar.Rdata")
}
  
if (FALSE) {
foo <- 1
saveit(bar=foo, file="foobar.Rdata")
}
  

Run the code above in your browser using DataLab