[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

Re: [R] Using substitute on a function parameter

2011-09-07 Thread William Dunlap
-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 Subject: [R] Using substitute on a function parameter Hello, I would like to write a function

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