If called with no arguments,
callGeneric evaluates a
call to the generic with the same set of arguments as the call to
callGeneric (in particular, missing arguments will still
be missing). Otherwise, give
callGeneric the
calling sequence you want the generic function to get. Used mostly when
one method wants to change the class of argument(s) and then call
another method. Note that the name of the (actual) generic is not one
of the arguments. The evaluator picks up the name from the local frame.
Works for either ordinary or group generic methods.
USAGE:
callGeneric(...)
ARGUMENTS:
...
arguments to be evaluated by the generic function.
VALUE:
the value returned by the generic function given the specified arguments.
SEE ALSO:
EXAMPLES:
setClass("track",
representation(x = "numeric", y = "numeric"))
setMethod("Math", "track",
function(x) {
x@y <- callGeneric(x@y)
x
})