Re: [R] Dynamic Dictionary Data Type?

From: Duncan Murdoch <>
Date: Fri 03 Jun 2005 - 05:42:08 EST

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 mailing list PLEASE do read the posting guide! Received on Fri Jun 03 06:13:03 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:32:22 EST