| Line 65... |
Line 65... |
| 65 |
S3 and S4 methods. S3 methods are printed by pasting the generic
|
65 |
S3 and S4 methods. S3 methods are printed by pasting the generic
|
| 66 |
function and class together, separated by a \sQuote{.}, as
|
66 |
function and class together, separated by a \sQuote{.}, as
|
| 67 |
\code{generic.class}. The S3 method name is followed by an asterisk
|
67 |
\code{generic.class}. The S3 method name is followed by an asterisk
|
| 68 |
\code{*} if the method definition is not exported from the package
|
68 |
\code{*} if the method definition is not exported from the package
|
| 69 |
namespace in which the method is defined. S4 method signatures are
|
69 |
namespace in which the method is defined. S4 method signatures are
|
| 70 |
printed as \code{generic,class-method}; S4 allows for multiple
|
70 |
printed as \samp{generic,class-method}; S4 allows for multiple
|
| 71 |
dispatch, so there may be several classes in the signature
|
71 |
dispatch, so there may be several classes in the signature
|
| 72 |
\code{generic,A,B-method}.
|
72 |
\samp{generic,A,B-method}.
|
| 73 |
|
73 |
|
| 74 |
When invoked with the \code{class} argument, \code{"byclass"} is
|
74 |
When invoked with the \code{class} argument, \code{"byclass"} is
|
| 75 |
\code{TRUE}, and the \code{print} method by default displays the names
|
75 |
\code{TRUE}, and the \code{print} method by default displays the names
|
| 76 |
of the generic functions associated with the class, \code{generic}.
|
76 |
of the generic functions associated with the class, \code{generic}.
|
| 77 |
|
77 |
|