The R Project SVN R

Rev

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

Rev 47262 Rev 47924
Line 103... Line 103...
103
\section{Methods}{
103
\section{Methods}{
104
  \describe{
104
  \describe{
105
    \item{coerce}{Methods are defined to coerce arbitrary objects to
105
    \item{coerce}{Methods are defined to coerce arbitrary objects to
106
      these classes, by calling the corresponding basic function, for
106
      these classes, by calling the corresponding basic function, for
107
      example, \code{as(x, "matrix")} calls \code{as.matrix(x)}.}
107
      example, \code{as(x, "matrix")} calls \code{as.matrix(x)}.}
108
    \item{Ops, Math}{Group methods (see, e.g., \code{\link{S4groupGeneric}})
108
    \item{Ops}{Group methods (see, e.g., \code{\link{S4groupGeneric}})
109
      are defined for combinations of structures and vectors (including
109
      are defined for combinations of structures and vectors (including
110
      special cases for array and matrix), implementing the concept of
110
      special cases for array and matrix), implementing the concept of
111
      vector structures as in the reference.
111
      vector structures as in the reference.  Essentially, structures
-
 
112
      combined with vectors retain the structure as long as the
-
 
113
      resulting object has the same length.  Structures combined with
-
 
114
      other structures remove the structure, since there is no
-
 
115
      automatic way to determine what should happen to the slots
-
 
116
      defining the structure.
-
 
117
 
-
 
118
      Note that these methods will be activated when a package is loaded
-
 
119
      containing a class that inherits from any of the structure
-
 
120
      classes or class \code{"vector"}.
112
    }
121
    }
113
  }
122
  }
114
}
123
}
115
\references{
124
\references{
116
 Chambers, John M. (2008)
125
 Chambers, John M. (2008)