Learn R Programming

GWASTools (version 1.18.0)

getobj: Get an R object stored in an Rdata file

Description

Returns an R object stored in an Rdata file

Usage

getobj(Rdata)

Arguments

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

Value

Rdata.

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

See Also

saveas

Examples

Run this code
x <- 1:10
file <- tempfile()
save(x, file=file)
y <- getobj(file)
unlink(file)

Run the code above in your browser using DataLab