The R Project SVN R

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
23610 ripley 1
\name{InternalMethods}
2
\alias{InternalMethods}
3
\title{Internal Generic Functions}
23613 ripley 4
\description{
5
  Many \R-internal functions are \emph{generic} and allow
23610 ripley 6
  methods to be written for.
23291 hornik 7
}
3986 ripley 8
 
23613 ripley 9
\details{
23291 hornik 10
  % -------------------- grep -nw DispatchOrEval src/*/*[ch]
11
  %                         --------------
12
  The following builtin functions are \emph{generic} as well, i.e., you
27447 ripley 13
  can write \code{\link[utils]{methods}} for them:
3986 ripley 14
 
23291 hornik 15
  \code{\link{[}},            % do_subset()          [subset.c:464]
23358 ripley 16
  \code{\link{[[}},           % do_subset2()         [subset.c:567]
17
  \code{\link{$}},
18
  \code{\link{[<-}},
19
  \code{\link{[[<-}},
20
  \code{\link{$<-}},
21
 
22
  \code{\link{length}},
3986 ripley 23
 
23291 hornik 24
  \code{\link{dimnames<-}},   % do_dimnamesgets()    [attrib.c:422]
25
  \code{\link{dimnames}},     % do_dimnames()        [attrib.c:489]
26
  \code{\link{dim<-}},        % do_dimgets()         [attrib.c:513]
27
  \code{\link{dim}}           % do_dim()             [attrib.c:501]
3986 ripley 28
 
23291 hornik 29
  \code{\link{c}},            % do_c()               [bind.c:524]
30
  \code{\link{unlist}},       % do_unlist()          [bind.c:648]
31
 
23358 ripley 32
  \code{\link{as.character}},
23291 hornik 33
  \code{\link{as.vector}},    % do_asvector()        [coerce.c:948]
23358 ripley 34
  \code{\link{is.array}},
35
  \code{\link{is.atomic}},
36
  \code{\link{is.call}},
37
  \code{\link{is.character}},
38
  \code{\link{is.complex}},
39
  \code{\link{is.double}},
40
  \code{\link{is.environment}},
41
  \code{\link{is.function}},
42
  \code{\link{is.integer}},
43
  \code{\link{is.language}},
44
  \code{\link{is.logical}},
45
  \code{\link{is.list}},
46
  \code{\link{is.matrix}},
23291 hornik 47
  \code{\link{is.na}},        % do_isna()            [coerce.c:1244]
48
  \code{\link{is.nan}}        % do_isnan()           [coerce.c:1332]
23358 ripley 49
  \code{\link{is.null}},
50
  \code{\link{is.numeric}},
51
  \code{\link{is.object}},
52
  \code{\link{is.pairlist}},
53
  \code{\link{is.recursive}},
54
  \code{\link{is.single}},
25416 ripley 55
  \code{\link{is.symbol}}.
3986 ripley 56
}
57
\seealso{
27447 ripley 58
  \code{\link[utils]{methods}} for the methods of non-Internal generic functions.
3986 ripley 59
}
60
\keyword{methods}