[R] set argument of a function by string variable

Duke duke.lists at gmx.com
Thu Feb 24 19:03:43 CET 2011


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 to do that?

Thanks,

D.



More information about the R-help mailing list