Re: [Rd] The *tmp* variable

2013-07-07 Thread Bert Gunter
Peter: (Your function doesn't work -- you need to specify runif(1)) What ambiguity? In the assignment within f(), x - x+1, the x on the rhs is a free variable in the function, and is therefore looked for in the environment where the function was defined. The x on the lhs is defined within the

Re: [Rd] The *tmp* variable

2013-07-07 Thread Bert Gunter
Thanks, Peter. Now I get it. It _was_ obvious! -- Bert On Sat, Jul 6, 2013 at 10:22 PM, Peter Meilstrup peter.meilst...@gmail.com wrote: The R interpreter does what it does at run time. The ambiguity is in reasoning at any time _other than run time_ which environment the returned value of

[Rd] does subset.data.frame need to accept extra arguments?

2013-07-07 Thread Peter Meilstrup
The formal list for subset.data.frame accepts a ... args(subset.data.frame) function (x, subset, select, drop = FALSE, ...) NULL But it appears that subset.data.frame does not actually use the ... or pass it along: ... %in% all.names(body(subset.data.frame)) [1] FALSE Is there any reason why