[R] Using substitute on a function parameter

Saptarshi Guha saptarshi.guha at gmail.com
Wed Sep 7 23:20:57 CEST 2011


Hello,

I would like to write a function where substitute operates on the
parameter, but ...


> Expression =  function(o,l)  substitute(o, l)
> Expression({x=.(FOO)}, list(FOO=2))
o

How do i get substitute to work on the contents of o.

Regards
Saptarshi



More information about the R-help mailing list