| Line 33... |
Line 33... |
| 33 |
simple call with one argument.
|
33 |
simple call with one argument.
|
| 34 |
|
34 |
|
| 35 |
Do supply \code{def} if there is no
|
35 |
Do supply \code{def} if there is no
|
| 36 |
current function of this name or for some reason you do not want
|
36 |
current function of this name or for some reason you do not want
|
| 37 |
to use that function to define the generic. In that case, the
|
37 |
to use that function to define the generic. In that case, the
|
| 38 |
formal arguments and
|
38 |
formal arguments and
|
| 39 |
default values for the generic are taken from \code{def}. In most
|
39 |
default values for the generic are taken from \code{def}. In most
|
| 40 |
cases, the body of \code{def} will then define the default method,
|
40 |
cases, the body of \code{def} will then define the default method,
|
| 41 |
as the existing function did in the one-argument call.
|
41 |
as the existing function did in the one-argument call.
|
| 42 |
|
42 |
|
| 43 |
If you want to create a new generic function with \emph{no}
|
43 |
If you want to create a new generic function with \emph{no}
|
| 44 |
default method, then \code{def} should be only a call to
|
44 |
default method, then \code{def} should be only a call to
|
| 45 |
\code{\link{standardGeneric}} with the same character string as
|
45 |
\code{\link{standardGeneric}} with the same character string as
|
| 46 |
\code{name}.
|
46 |
\code{name}.
|
| 47 |
|
47 |
|
| 48 |
|
48 |
|
| 49 |
}
|
49 |
}
|
| 50 |
\item{group}{ Optionally, a character string giving the name of the group
|
50 |
\item{group}{ Optionally, a character string giving the name of the group
|
| 51 |
generic function to which this function belongs. See
|
51 |
generic function to which this function belongs. See
|
| 52 |
\link{Methods} for details of group generic functions in method selection.
|
52 |
\link{Methods} for details of group generic functions in method selection.
|
| 53 |
}
|
53 |
}
|