Displaying 1 result from an estimated 1 matches for "expr12".
Did you mean:
expr1
2013 Apr 29
3
all.vars for nested expressions
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 in a vector
c(tp,fn) (because a was defined as fn+tp). In other words, I'd like