[R] altering a "call" variable from quote()

Jack Tanner ihok at hotmail.com
Mon Mar 28 06:13:43 CEST 2011


Jack Tanner <ihok <at> hotmail.com> writes:

> > b = quote(b==3)
> 
> Now I want to append "&& x > 2" to the value of b. How do I do that?

Never mind, I figured it out:

substitute(b && x > 2, list(b=b))



More information about the R-help mailing list