Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

load.Rdata

R Utilities: Loading Rdata Files in a Convenient Way


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

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

See Also

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

Examples

## 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)

miceadds

Some Additional Multiple Imputation Functions, Especially for 'mice'

v3.11-6
GPL (>= 2)
Authors
Alexander Robitzsch [aut,cre] (<https://orcid.org/0000-0002-8226-3132>), Simon Grund [aut] (<https://orcid.org/0000-0002-1290-8986>), Thorsten Henke [ctb]
Initial release
2021-01-21 11:48:47

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.