search for: existingfunction

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

2009 Feb 12
2
Messing with the "..." argument
...e to use certain vars in "...", then remove them from "..." and pass the rest of "..." to another function. Here's a short example: I'm adding more functionality to a generic method by defining how it works on a new class "MyClass": setMethod('existingFunction', 'MyClass', function (object, ...) { vars <- list(...) doSomethingWith(vars$myCustomVar) # now I want to pass the rest of the vars down to another function, # let's say some plotting function, so I'd like to remove # `myCustomVar` from "...", keep the...