load.Rdata: R Utilities: Loading 'Rdata' Files in a Convenient Way

Description Usage Arguments Author(s) See Also Examples

Description

These functions loads a Rdata object saved as a data frame or a matrix in the current R environment. The function load.Rdata saves the loaded object in the global environment while load.Rdata2 loads the object only specified environments. Hence, usage of load.Rdata2 instead of load.Rdata is recommended.

Usage

1
2
3
load.Rdata(filename, objname)

load.Rdata2(filename, path=getwd())

Arguments

filename

Rdata file (matrix or data frame)

objname

Object name. This object will be a global variable in R.

path

Directory from which the dataset should be loaded

Author(s)

Alexander Robitzsch

See Also

See also save.Rdata for saving data frames in a Rdata format.

See also: base::load, base::save

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
# load a data frame in the file "data_s3.Rdata" and save this
# as the object "dat.s3"
load.Rdata( filename = "data_s3.Rdata" , "dat.s3" )
head(dat.s3) 

# Alternatively one can use the function
dat.s3 <- miceadds::load.Rdata2( filename = "data_s3.Rdata")

## End(Not run)


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

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.