oun...@r-project.org [mailto:r-help-boun...@r-project.org] On
> Behalf
> Of flxms
> Sent: Monday, April 29, 2013 4:34 AM
> To: r-help@r-project.org
> Subject: [R] all.vars for nested expressions
>
> Dear R fellows,
>
> Assume I define
>
> a <- expression(fn
Hi Felix,
I thought, this could be an easy task for substitute, and the following
works as expected:
all.vars(substitute(expression(tp/a),list(a=expression(fn+tp
# [1] "tp" "fn"
But (of course)
all.vars(substitute(sen,list(a=a)))
does not yield the desired result, and I can't figure out, how
Dear R fellows,
Assume I define
a <- expression(fn+tp)
sen <- expression(tp/a)
Now I'd like to know, which variables are necessary for calculating sen
all.vars(sen)
This results in a vector c(tp,a). But I'd like all.vars to evaluate the
sen-object down to the ground level, which would result
Dear R fellows,
Assume I define
a <- expression(fn+tp)
sen <- expression(tp/a)
Now I'd like to know, which variables are necessary for calculating sen
all.vars(sen)
This results in a vector c(tp,a). But I'd like all.vars to evaluate the
sen-object down to the ground level, which would result
4 matches
Mail list logo