load_rdata: Load an RData file

Description Usage Arguments Value Examples

Description

load_rdata loads an RData file into a specified variable

Usage

1
load_rdata(file_name)

Arguments

file_name

a character string giving the name of the file to load

Value

The objects in the RData file. If there is more than one object, a list will be returned.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
x = pi # to ensure there is some data
x_list = list(pi = pi, pi_sq = pi^2)
save(x, file= "pi.RData")
save(x_list, file= "pi_list.RData")
rm(x)
rm(x_list)
x = load_rdata('pi.RData')
x_list = load_rdata('pi_list.RData')

## End(Not run)

jeff324/powder documentation built on June 4, 2019, 3:04 a.m.