[R] Dynamic Dictionary Data Type?

Duncan Murdoch murdoch at stats.uwo.ca
Thu Jun 2 21:42:08 CEST 2005


On 6/2/2005 2:41 PM, Gabor Grothendieck wrote:

> or alternately use new.env(parent = NULL) in which case you don't
> need the inherits = FALSE on the get either.

On 6/2/2005 2:59 PM, Seth Falcon wrote:

 >
 > In terms of using R's environments as dictionary data structures I
 > think what one wants most of the time is:
 >
 > myEnv <- new.env(hash=TRUE, parent=NULL)

One would think that, but it's not true.  "parent = NULL" sets the 
parent to the base environment.  There is currently no way to set the 
parent to be an empty environment.  I tried to fix this in 2.1.0, but 
ran out of time; hopefully I'll be more successful for 2.2.0.

Duncan Murdoch




More information about the R-help mailing list