Skip to content
Prev 100637 / 398498 Next

How to pass expression as an argument

Tong Wang <wangtong at usc.edu> writes:
Either pass the expression explicitly using myfun(quote(x*2)) or
myfun(expression(x*2)) or use substitute(express) inside the function.