[R] Saving objects inside a list
Gabor Grothendieck
ggrothendieck at gmail.com
Mon Jan 3 18:54:01 CET 2011
On Mon, Jan 3, 2011 at 12:25 PM, Eduardo de Oliveira Horta
<eduardo.oliveirahorta at gmail.com> wrote:
> Hello there,
>
> any ideas on how to save all the objects on my workspace inside a list
> object?
>
> For example, say my workspace is as follows
> ls()
> [1] "x" "y" "z"
>
> and suppose I want to put these objects inside a list object, say
>
> object.list <- list()
>
> without having to explicitly write down their names as in
>
> object.list$x = x
> object.list$y = y
> object.list$z = z
>
Try this:
eapply(.GlobalEnv, identity)
--
Statistics & Software Consulting
GKX Group, GKX Associates Inc.
tel: 1-877-GKX-GROUP
email: ggrothendieck at gmail.com
More information about the R-help
mailing list