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

rdaFunctions

Load and list objects from an .rda file


Description

Utility functions to read the names and load the objects from an .rda file, into an R list.

Usage

list.rda(.filename)

obj.rda(.filename)

Arguments

.filename

The path to the file where the R object is saved.

Details

Files with the extension .rda are routinely created using the base function save().

The function list.rda() loads the object(s) from the .rda file into a list, preserving the object names in the list components.

The .rda file can naturally be loaded with the base load() function, but in doing so the containing objects will overwrite any existing objects with the same names.

The function obj.rda() returns the names of the objects from the .rda file.

Value

A list, containing the objects from the loaded .rda file.

Author(s)

Adrian Dusa


admisc

Adrian Dusa's Miscellaneous

v0.12
GPL (>= 3)
Authors
Adrian Dusa [aut, cre, cph] (<https://orcid.org/0000-0002-3525-9253>)
Initial release
2021-03-16

We don't support your browser anymore

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