Displaying 1 result from an estimated 1 matches for "mycustomvar".
Did you mean:
mycustomer
2009 Feb 12
2
Messing with the "..." argument
...uot; 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 rest of the vars and just
# pass the valid "..." elements down through the call chain
doSom...