[R] list subsets & passing parameters question.

Thomas Lumley tlumley at u.washington.edu
Fri Sep 19 16:05:47 CEST 2003


On Fri, 19 Sep 2003, Wolski wrote:
>
> The second problem i have are that i want to store parmeters to the plot.default function in a list. eg.: pars<-list(xlim=c(0,100),xlab="irrelevant" , ylab="incredible important").
> and call the plot.default function with this list as parameters.
>
> I know that there are the way with eval(parse(text = paste("plot.default",........
>

do.call("f",list(a,b,c))

calls f(a,b,c)

which I think is what you want.

	-thomas




More information about the R-help mailing list