Re: [R] Using substitute on a function parameter

2011-09-07 Thread David Winsemius
On Sep 7, 2011, at 5:20 PM, Saptarshi Guha wrote: 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. I sugge

Re: [R] Using substitute on a function parameter

2011-09-07 Thread William Dunlap
ction(myArgument) Bill Dunlap Spotfire, TIBCO Software wdunlap tibco.com > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On > Behalf Of Saptarshi Guha > Sent: Wednesday, September 07, 2011 2:21 PM > To: R-help@r-project.org &g

[R] Using substitute on a function parameter

2011-09-07 Thread Saptarshi Guha
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 _