| Line 95... |
Line 95... |
| 95 |
\code{"prod"}, \code{"sum"}, \code{"any"}, \code{"all"}}
|
95 |
\code{"prod"}, \code{"sum"}, \code{"any"}, \code{"all"}}
|
| 96 |
\item{\code{Complex}}{\code{"Arg"}, \code{"Conj"}, \code{"Im"},
|
96 |
\item{\code{Complex}}{\code{"Arg"}, \code{"Conj"}, \code{"Im"},
|
| 97 |
\code{"Mod"}, \code{"Re"}}
|
97 |
\code{"Mod"}, \code{"Re"}}
|
| 98 |
}
|
98 |
}
|
| 99 |
Note that \code{Ops} merely consists of three sub groups.
|
99 |
Note that \code{Ops} merely consists of three sub groups.
|
| 100 |
|
100 |
|
| 101 |
All the functions in these groups (other than the group generics
|
101 |
All the functions in these groups (other than the group generics
|
| 102 |
themselves) are basic functions in \R. They are not by default S4 generic
|
102 |
themselves) are basic functions in \R. They are not by default S4 generic
|
| 103 |
functions, and many of them are defined as primitives. However, you can still define
|
103 |
functions, and many of them are defined as primitives. However, you can still define
|
| 104 |
formal methods for them, both individually and via the group generics. It all works more or less as you
|
104 |
formal methods for them, both individually and via the group generics. It all works more or less as you
|
| 105 |
might expect, admittedly via a bit of trickery in the background.
|
105 |
might expect, admittedly via a bit of trickery in the background.
|
| Line 111... |
Line 111... |
| 111 |
you must set a specific method for these functions in order to call
|
111 |
you must set a specific method for these functions in order to call
|
| 112 |
them with the extra argument(s).
|
112 |
them with the extra argument(s).
|
| 113 |
|
113 |
|
| 114 |
For further details about group generic functions see section 10.5 of
|
114 |
For further details about group generic functions see section 10.5 of
|
| 115 |
\emph{Software for Data Analysis}.
|
115 |
\emph{Software for Data Analysis}.
|
| 116 |
|
116 |
|
| 117 |
}
|
117 |
}
|
| 118 |
\references{
|
118 |
\references{
|
| 119 |
Chambers, John M. (2008)
|
119 |
Chambers, John M. (2008)
|
| 120 |
\emph{Software for Data Analysis: Programming with R}
|
120 |
\emph{Software for Data Analysis: Programming with R}
|
| 121 |
Springer. (For the R version.)
|
121 |
Springer. (For the R version.)
|