getobj: Get an R object stored in an Rdata file

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/utils.R

Description

Returns an R object stored in an Rdata file

Usage

1
getobj(Rdata)

Arguments

Rdata

path to an Rdata file containing a single R object to load

Details

Loads an R object and stores it under a new name without creating a duplicate copy. If multiple objects are stored in the same file, only the first one will be returned

Value

The R object stored in Rdata.

Author(s)

Stephanie Gogarten

See Also

saveas

Examples

1
2
3
4
5
x <- 1:10
file <- tempfile()
save(x, file=file)
y <- getobj(file)
unlink(file)

GWASTools documentation built on May 31, 2017, 2:56 p.m.

Search within the GWASTools package
Search all R packages, documentation and source code