Re: [R] assigning to list element within target environment

2011-03-17 Thread Hadley Wickham
On Thu, Mar 17, 2011 at 7:25 AM, Richard D. Morey wrote: > I would like to assign an value to an element of a list contained in an > environment. The list will contain vectors and matrices. Here's a simple > example: > > # create toy environment > testEnv = new.env(parent = emptyenv()) > > # creat

[R] assigning to list element within target environment

2011-03-17 Thread Richard D. Morey
I would like to assign an value to an element of a list contained in an environment. The list will contain vectors and matrices. Here's a simple example: # create toy environment testEnv = new.env(parent = emptyenv()) # create list that will be in the environment, then assign() it x = list(a=1