Re: [R] set argument of a function by string variable

2011-02-25 Thread Duke
On 2/24/11 1:21 PM, David Winsemius wrote: On Feb 24, 2011, at 1:03 PM, Duke wrote: Hi folks, I am wondering if the following is possible: I want to control the arguments sent to a function by string variables. For example, instead of > heatmap.2( A, col=greenred(75) ) I would want to have

Re: [R] set argument of a function by string variable

2011-02-24 Thread David Winsemius
On Feb 24, 2011, at 1:03 PM, Duke wrote: Hi folks, I am wondering if the following is possible: I want to control the arguments sent to a function by string variables. For example, instead of > heatmap.2( A, col=greenred(75) ) I would want to have something like: > heatmap.2 ( paste(A, "c

Re: [R] set argument of a function by string variable

2011-02-24 Thread Peter Langfelder
On Thu, Feb 24, 2011 at 10:03 AM, Duke wrote: > Hi folks, > > I am wondering if the following is possible: I want to control the arguments > sent to a function by string variables. For example, instead of >> heatmap.2( A, col=greenred(75) ) > I would want to have something like: >> heatmap.2 ( pas

[R] set argument of a function by string variable

2011-02-24 Thread Duke
Hi folks, I am wondering if the following is possible: I want to control the arguments sent to a function by string variables. For example, instead of > heatmap.2( A, col=greenred(75) ) I would want to have something like: > heatmap.2 ( paste(A, "col=greenred(75)", sep=",") ) Is this possible