The R Project SVN R

Rev

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

Rev 24300 Rev 25118
Line 18... Line 18...
18
\details{
18
\details{
19
  The functions \code{dim} and \code{dim<-} are generic.
19
  The functions \code{dim} and \code{dim<-} are generic.
20
 
20
 
21
  \code{dim} has a method for \code{\link{data.frame}}s, which returns
21
  \code{dim} has a method for \code{\link{data.frame}}s, which returns
22
  the length of the \code{row.names} attribute of \code{x} and the
22
  the length of the \code{row.names} attribute of \code{x} and the
23
  length of \code{x} (the numbers of ``rows'' and ``columns'').
23
  length of \code{x} (the numbers of \dQuote{rows} and \dQuote{columns}).
24
}
24
}
25
\value{
25
\value{
26
  For an array (and hence in particular, for a matrix) \code{dim} retrieves
26
  For an array (and hence in particular, for a matrix) \code{dim} retrieves
27
  the \code{dim} attribute of the object.  It is \code{NULL} or a vector
27
  the \code{dim} attribute of the object.  It is \code{NULL} or a vector
28
  of mode \code{\link{integer}}.
28
  of mode \code{\link{integer}}.