The R Project SVN R

Rev

Rev 52266 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 52266 Rev 52267
Line 113... Line 113...
113
the new method was 
113
the new method was 
114
\code{"myClass"}:
114
\code{"myClass"}:
115
 
115
 
116
 \code{f3.myClass <- function(x, ...) { ..... }}
116
 \code{f3.myClass <- function(x, ...) { ..... }}
117
 
117
 
118
 \code{setMethod("f3", "myClass", f.myClass)}
118
 \code{setMethod("f3", "myClass", f3.myClass)}
119
 
119
 
120
The reasons for defining both S3 and S4 methods are as follows:
120
The reasons for defining both S3 and S4 methods are as follows:
121
\enumerate{
121
\enumerate{
122
  \item An S4 method alone will not be seen if the S3 generic function
122
  \item An S4 method alone will not be seen if the S3 generic function
123
    is called directly.  However, primitive functions and operators
123
    is called directly.  However, primitive functions and operators