Skip to content
Back to formatted view

Raw Message

Message-ID: <CAP01uR=z1=dX7huX-20LpRK9i9uGjKmmPe4mrwym2X2fw6j6aQ@mail.gmail.com>
Date: 2013-02-01T22:54:50Z
From: Gabor Grothendieck
Subject: Loading a list into the environment
In-Reply-To: <CABG0rftfM4eBUKKBO+EGDHBwzHoA=B=UfA+7TeVN1xQ7-xf27w@mail.gmail.com>

On Fri, Feb 1, 2013 at 5:24 PM, Jonathan Greenberg <jgrn at illinois.edu> wrote:
> R-helpers:
>
> Say I have a list:
>
> myvariables <- list(a=1:10,b=20)
>
> Is there a way to load the list components into the environment as
> variables based on the component names?  i.e. by applying this theoretical
> function to myvariables I would have the variables a and b loaded into the
> environment without having to explicitly define them.

?list2env

--
Statistics & Software Consulting
GKX Group, GKX Associates Inc.
tel: 1-877-GKX-GROUP
email: ggrothendieck at gmail.com