| Line 34... |
Line 34... |
| 34 |
\code{fun.first} and, if it finds it, applied it to the object. If no
|
34 |
\code{fun.first} and, if it finds it, applied it to the object. If no
|
| 35 |
such function is found a function called \code{fun.second} is tried.
|
35 |
such function is found a function called \code{fun.second} is tried.
|
| 36 |
If no class name produces a suitable function, the function
|
36 |
If no class name produces a suitable function, the function
|
| 37 |
\code{fun.default} is used.
|
37 |
\code{fun.default} is used.
|
| 38 |
|
38 |
|
| 39 |
Function \code{\link{methods}} can be used to find out about the
|
39 |
Function \code{\link[utils]{methods}} can be used to find out about the
|
| 40 |
methods for a particular generic function or class.
|
40 |
methods for a particular generic function or class.
|
| 41 |
|
41 |
|
| 42 |
Now for some obscure details that need to appear somewhere. These
|
42 |
Now for some obscure details that need to appear somewhere. These
|
| 43 |
comments will be slightly different than those in Appendix A of the
|
43 |
comments will be slightly different than those in Appendix A of the
|
| 44 |
White S Book. \code{UseMethod} creates a \dQuote{new} function call with
|
44 |
White S Book. \code{UseMethod} creates a \dQuote{new} function call with
|
| Line 87... |
Line 87... |
| 87 |
The function \code{.isMethodsDispatchOn()} returns \code{TRUE} if
|
87 |
The function \code{.isMethodsDispatchOn()} returns \code{TRUE} if
|
| 88 |
the S4 method dispatch has been turned on in the evaluator. It is
|
88 |
the S4 method dispatch has been turned on in the evaluator. It is
|
| 89 |
meant for \R internal use only.
|
89 |
meant for \R internal use only.
|
| 90 |
}
|
90 |
}
|
| 91 |
\seealso{
|
91 |
\seealso{
|
| 92 |
\code{\link{methods}}, \code{\link[base]{class}}, \code{\link{getS3method}}
|
92 |
\code{\link[utils]{methods}}, \code{\link[base]{class}}, \code{\link[utils]{getS3method}}
|
| 93 |
}
|
93 |
}
|
| 94 |
\references{
|
94 |
\references{
|
| 95 |
Chambers, J. M. (1992)
|
95 |
Chambers, J. M. (1992)
|
| 96 |
\emph{Classes and methods: object-oriented programming in S.}
|
96 |
\emph{Classes and methods: object-oriented programming in S.}
|
| 97 |
Appendix A of \emph{Statistical Models in S}
|
97 |
Appendix A of \emph{Statistical Models in S}
|