Learn R Programming

EDCimport (version 0.5.2)

load_as_list: Load a .RData file as a list

Description

Instead of loading a .RData file in the global environment, extract every object into a list.

Usage

load_as_list(filename)

Value

a list

Arguments

filename

the filename, with the .RData extension.

Examples

Run this code
x = list(a=1, b=mtcars)
save_list(x, "test.RData")
y = load_as_list("test.RData")
print(y$a)

Run the code above in your browser using DataLab