[R] Assigning a new name to object loaded with "load()"

Jeff Newmiller jdnewmil at dcn.davis.CA.us
Sat Jul 28 07:51:21 CEST 2012


Don't imagine too much, because R is pretty good about not doing deep copies unless it is necessary to change data.
---------------------------------------------------------------------------
Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<jdnewmil at dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live Go...
                                      Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...1k
--------------------------------------------------------------------------- 
Sent from my phone. Please excuse my brevity.

Alireza Mahani <alireza.s.mahani at gmail.com> wrote:

>This works, thank you! I imagine that for large objects there will be a
>penalty for calling this function since the objects will be loaded and
>then
>copied as the function's return value.
>
>
>
>--
>View this message in context:
>http://r.789695.n4.nabble.com/Assigning-a-new-name-to-object-loaded-with-load-tp4638144p4638182.html
>Sent from the R help mailing list archive at Nabble.com.
>
>______________________________________________
>R-help at r-project.org mailing list
>https://stat.ethz.ch/mailman/listinfo/r-help
>PLEASE do read the posting guide
>http://www.R-project.org/posting-guide.html
>and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list