[R] loading .rda file
rbaer at atsu.edu
Tue Aug 30 18:14:17 CEST 2016
I think that the .rda extension is the old extension convention for what
now gets the .RData extension name by convention.
These are basically workspaces. These .RData files can contain multiple
data objects, and all objects seem to read back in with the same name
that they were saved with using the save() function. Of course, you can
assign a new name to the objects you read in with the standard <- or ->
See ?save, to lean how to save them with the new name. You can save
just an individual data object in an .rda or .RData file and make the
data object name match the filename if you so wish.
On 8/30/2016 9:37 AM, Leslie Rutkowski wrote:
> I'm slowly migrating from SAS to R and - for the very first time - I'm
> working with a native .Rda data file (rather than importing data from other
> sources). When I load this .Rda file into the global environment using
> load("file path") I see a data.frame in the global environment called
> "mydata" that corresponds to the .rda file.
> My question: how can I change the name of this data.frame to something of
> my choosing?
> Thanks for considering this very simple question.
> [[alternative HTML version deleted]]
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
Robert W. Baer, Ph.D.
Professor of Physiology
Kirksville College of Osteopathic Medicine
A T Still University of Health Sciences
800 W. Jefferson St
Kirksville, MO 63501
More information about the R-help