loadRData: Import selected object from a .RData file

View source: R/utility_functions.R

loadRDataR Documentation

Import selected object from a .RData file

Description

loadRData imports selected object from a .RData file and returns only that object. Modified from code from stackexchange user ricardo at this link https://stackoverflow.com/questions/5577221/how-can-i-load-an-object-into-a-variable-name-that-i-specify-from-an-r-data-file

Usage

loadRData(filePath, objNameToGet = NULL)

Arguments

filePath

The path of the .RData object to load

objNameToGet

The name of the object to extract from the specified .RData file. If left to the default value of NULL the function will return the first object alphabetically so specify this argument if more than one object is saved within the .RData object.

Details

Modified from code from stackexchange user ricardo at this link https://stackoverflow.com/questions/5577221/how-can-i-load-an-object-into-a-variable-name-that-i-specify-from-an-r-data-file

Value

An R object


skvanburen/CompDTUReg documentation built on Jan. 23, 2025, 9:01 a.m.