Re: [R] Evaluation of an expression as function argument

2009-04-30 Thread Sebastien Bihorel
Thanks Uwe and Baptiste *Sebastien Bihorel, PharmD, PhD* PKPD Scientist Cognigen Corp Email: sebastien.biho...@cognigencorp.com Phone: (716) 633-3463 ext. 323 Uwe Ligges wrote: Sebastien Bihorel wrote: Dear R-users, I would like to know if is i

Re: [R] Evaluation of an expression as function argument

2009-04-29 Thread Uwe Ligges
Sebastien Bihorel wrote: Dear R-users, I would like to know if is it possible to set a function argument as an evaluated expression. I have tried several syntaxes, including the following example, but could not get it anything to run. The plot function is used here but I would like to later

Re: [R] Evaluation of an expression as function argument

2009-04-29 Thread baptiste auguie
Try this, items <- c(list(col=2),list(pch=2)) par(mfrow=c(2, 1)) for (ii in seq(2)) { do.call(function(x, y, ... ) plot(1:10, ...), items[ii]) } ?do.call HTH, baptiste On 29 Apr 2009, at 19:30, Sebastien Bihorel wrote: Dear R-users, I would like to know if is it possible to set a fun

[R] Evaluation of an expression as function argument

2009-04-29 Thread Sebastien Bihorel
Dear R-users, I would like to know if is it possible to set a function argument as an evaluated expression. I have tried several syntaxes, including the following example, but could not get it anything to run. The plot function is used here but I would like to later apply the same approach to