The R Project SVN R

Rev

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

Rev 76951 Rev 76970
Line 16... Line 16...
16
    be registered.  If not given, the function named
16
    be registered.  If not given, the function named
17
    \code{\var{generic}.\var{class}} is used.}
17
    \code{\var{generic}.\var{class}} is used.}
18
}
18
}
19
\details{
19
\details{
20
  This function should only be used in R scripts: for package code, one
20
  This function should only be used in R scripts: for package code, one
21
  should use the correspoding \samp{S3method} \file{NAMESPACE} directive.
21
  should use the corresponding \samp{S3method} \file{NAMESPACE} directive.
22
}
22
}
23
\examples{
23
\examples{
24
## Create a generic function and register a method for objects
24
## Create a generic function and register a method for objects
25
## inheriting from class 'cls':
25
## inheriting from class 'cls':
26
gen <- function(x) UseMethod("gen")
26
gen <- function(x) UseMethod("gen")