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
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')

jeff324/loadr documentation built on May 23, 2019, 7:03 p.m.