Thomas Lumley <tlumley <at> u.washington.edu> writes:

> The distinction between "environment" and "frame" is important. The frame
> is what you find things in with get(, inherits=FALSE) and the environment
> uses get(, environment=TRUE).

The thing I find odd about this one is that if we have:

e <- new.env()
e$x <- 1
f <- new.env(parent=e)
f$x  # gives an error

then I would have expected x to be returned since f is an environment
and x is in that environment.  On the other hand, if an environment
is defined to be the same as a frame (and there is some other word for 
an environment and its ancestors) then the above notation makes sense.

______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to