RDataUse: Return a specific RData file/object

Description Usage Arguments Value See Also Examples

Description

RDataUse returns the specified RData file/object. The file and object must have the same name.

Usage

1

Arguments

dir

character value; path to the RData file

x

character value; file/object name to retrieve

Value

Returns the object x from the RData file with the path/name: paste0(dir, "/", x, ".RData")

See Also

RDataCreate, new.env, load, get

Examples

1
2
3
4
5
6
RDataCreate(".", "test", names, list(x = mtcars), TRUE)
load("test.RData")
print(test)
x <- RDataUse(".", "test")
print(x)
identical(test, x)

dnegrey/spork documentation built on May 15, 2019, 9:40 a.m.