Skip to content
Prev 30968 / 398506 Next

lexical scope

On Tue, Apr 22, 2003 at 04:07:39PM +1200, Robin Hankin wrote:
(TENTATIVE) ANSWERS:

1- becase the enclosing frame for f is .GlobalEnv.
2- f <- function(t){t+get("x", envir=parent.frame())}
3- R language definition p.22 is a place to start


Hopin' it helps,




L.