search for: ___add

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

Did you mean: __add
2011 Oct 07
1
modify "..." (optional args)
...ments (...) passed to a function, so that these can be passed in modified form to a subsequent function call? I checked "Programming with Data" but could not find a solution there. What I'd like is something along these lines: test <- function(x,y,...) { if(!hasArg(xlab)) { ___add xlab to ...___ } if(hasArg(xlab)) { ___remove xlab from ...___ } # alternative plot(x,y,...) } Of course, I could use separate calls, like if(hasArg(xlab)) plot(x,y,...) else plot(x,y,xlab="label",...) but this gets complicated if there is more than one such case to consider....