The R Project SVN R

Rev

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

Rev 71228 Rev 71548
Line 171... Line 171...
171
  }
171
  }
172
}
172
}
173
 
173
 
174
\section{Details}{
174
\section{Details}{
175
  \describe{
175
  \describe{
176
    \item{\code{setGeneric}:}{
-
 
177
      If there is already a non-generic function of this name, it will
-
 
178
      be used to define the generic unless \code{def} is supplied, and
-
 
179
      the current function will become the default method for the
-
 
180
      generic.
-
 
181
 
-
 
182
      If \code{def} is supplied, this defines the generic function, and
-
 
183
      no default method will exist (often a good feature, if the
-
 
184
      function should only be available for a meaningful subset of all
-
 
185
      objects).
-
 
186
 
-
 
187
      Arguments \code{group} and \code{valueClass} are retained for
-
 
188
      consistency with S-Plus, but are currently not used.
-
 
189
    }
-
 
190
    \item{\code{isGeneric}:}{
176
    \item{\code{isGeneric}:}{
191
      If the \code{fdef} argument is supplied, take this as the
177
      If the \code{fdef} argument is supplied, take this as the
192
      definition of the generic, and test whether it is really a
178
      definition of the generic, and test whether it is really a
193
      generic, with \code{f} as the name of the generic.  (This argument
179
      generic, with \code{f} as the name of the generic.  (This argument
194
      is not available in S-Plus.)
180
      is not available in S-Plus.)
Line 236... Line 222...
236
      re-establish the same generic function as before.
222
      re-establish the same generic function as before.
237
    }
223
    }
238
  }
224
  }
239
}
225
}
240
\references{
226
\references{
241
 Chambers, John M. (2008)
227
 Chambers, John M. (2016)
242
 \emph{Software for Data Analysis: Programming with R}
228
 \emph{Extending R},
243
  Springer.  (For the R version.)
229
  Chapman & Hall.
244
 
-
 
245
 Chambers, John M. (1998)
230
(Chapters 9 and 10.)
246
 \emph{Programming with Data}
-
 
247
 Springer (For the original S4 version.)
-
 
248
}
231
}
-
 
232
 
249
\seealso{
233
\seealso{
250
  \code{\link{getMethod}} (also for \code{selectMethod}),
234
  \code{\link{getMethod}} (also for \code{selectMethod}),
251
  \code{\link{setGeneric}},
235
  \code{\link{setGeneric}},
252
  \code{\link{setClass}},
236
  \code{\link{setClass}},
253
  \code{\link{showMethods}}
237
  \code{\link{showMethods}}