search for: plotfoo

Displaying 1 result from an estimated 1 matches for "plotfoo".

2001 Feb 11
2
splitting up optional args
Hi, A question (& possible suggestion) about function calls. Is there an R idiom to eliminate the redundancy in the following common situation? foo <- function(x, control=ComplicatedDefault) { etc. } plotfoo <- function(x, foocontrol=ComplicatedDefault, ...) { y <- foo(x, control=foocontrol) lines(x,y,...) } The idea is that there are MANY optional parameters to plotfoo(). Any specified value for foocontrol should be passed to foo(), and the other options should...