dataToList: Import RData in a list format

Description Usage Arguments Value Examples

View source: R/helper.R

Description

Import RData in a list format

Usage

1

Arguments

source

A RData file.

Value

A list containing the objects present in the source RData file.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
# Dummy example:
# Create two objects:
object_1 <- "This"
object_2 <- "Worked!"

# Save them as an RData file in R's temporary directory
save(object_1, object_2, file = paste0(tempdir(), "/dataToList_example.RData"))

# Remove the dummy objects as we don't need them any more
rm(object_1, object_2)

# Load the RData file as a single object
x <- dataToList(paste0(tempdir(), "/dataToList_example.RData"))

# inspect x
x

actel documentation built on Jan. 6, 2021, 1:07 a.m.