dataToList: Import RData in a list format

View source: R/helper.R

dataToListR Documentation

Import RData in a list format

Description

Import RData in a list format

Usage

dataToList(source)

Arguments

source

A RData file.

Value

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

Examples

# 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 Oct. 19, 2023, 9:08 a.m.