Hi Wacek: Somewhere I remember reading that environments have
functionality like lists EXCEPT for the names part. IIRC, I think that I
read this in the R Language Reference manual also.
On Wed, Feb 25, 2009 at 4:32 AM, Wacek Kusnierczyk wrote:
a quick follow-up:
e = new.env()
e$a
a quick follow-up:
e = new.env()
e$a = 1
names(e)
# NULL
names(e) = 'a'
# error in names(e) = "foo" : names() applied to a non-vector
this is surprising. names(e) 'works', there is no complaint, but when
names<- is used, the error is about the use of names, not names<-.