| Line 51... |
Line 51... |
| 51 |
exists, or an error results.
|
51 |
exists, or an error results.
|
| 52 |
|
52 |
|
| 53 |
Function \code{\link{methods}} can be used to find out about the
|
53 |
Function \code{\link{methods}} can be used to find out about the
|
| 54 |
methods for a particular generic function or class.
|
54 |
methods for a particular generic function or class.
|
| 55 |
|
55 |
|
| 56 |
\code{UseMethod} is a primitive function but (as from \R 2.11.0) uses
|
56 |
\code{UseMethod} is a primitive function but uses standard argument
|
| 57 |
standard argument matching. It is not the only means of dispatch of
|
57 |
matching. It is not the only means of dispatch of methods, for there
|
| 58 |
methods, for there are \link{internal generic} and \link{group generic}
|
58 |
are \link{internal generic} and \link{group generic} functions.
|
| 59 |
functions. \code{UseMethod} currently dispatches on the implicit
|
59 |
\code{UseMethod} currently dispatches on the implicit class even for
|
| 60 |
class even for arguments that are not objects, but the other means of
|
60 |
arguments that are not objects, but the other means of dispatch do
|
| 61 |
dispatch do not.
|
61 |
not.
|
| 62 |
|
62 |
|
| 63 |
\code{NextMethod} invokes the next method (determined by the
|
63 |
\code{NextMethod} invokes the next method (determined by the
|
| 64 |
class vector, either of the object supplied to the generic, or of
|
64 |
class vector, either of the object supplied to the generic, or of
|
| 65 |
the first argument to the function containing \code{NextMethod} if a
|
65 |
the first argument to the function containing \code{NextMethod} if a
|
| 66 |
method was invoked directly). Normally \code{NextMethod} is used with
|
66 |
method was invoked directly). Normally \code{NextMethod} is used with
|