Skip to content
Prev 66055 / 398502 Next

R equivalent to funcall?

On Thu, 17 Mar 2005 13:20:32 +0100 (CET), Johannes H?sing
<johannes at huesing.name> wrote :
do.call() comes close to what you want.  For example,

opts <- list(cex=2, lty=3, type='b')

do.call("plot", c(list(1:10, rnorm(10)), opts))

This messes up some of the tricks plot() uses to set default axis
labels, but otherwise it may be close to what you're after.

Duncan Murdoch