The R Project SVN R

Rev

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

Rev 27712 Rev 28014
Line 33... Line 33...
33
\details{
33
\details{
34
  If either of \code{nrow} or \code{ncol} is not given, an attempt is
34
  If either of \code{nrow} or \code{ncol} is not given, an attempt is
35
  made to infer it from the length of \code{data} and the other
35
  made to infer it from the length of \code{data} and the other
36
  parameter.
36
  parameter.
37
 
37
 
-
 
38
  If there are too few elements in \code{data} to fill the array,
-
 
39
  then the elements in \code{data} are recycled.  If \code{data} has
-
 
40
  length zero, \code{NA} of an appropriate type is used for atomic
-
 
41
  vectors and \code{NULL} for lists.
-
 
42
 
38
  \code{is.matrix} returns \code{TRUE} if \code{x} is a matrix (i.e., it
43
  \code{is.matrix} returns \code{TRUE} if \code{x} is a matrix (i.e., it
39
  is \emph{not} a \code{\link{data.frame}} and has a \code{\link{dim}}
44
  is \emph{not} a \code{\link{data.frame}} and has a \code{\link{dim}}
40
  attribute of length 2) and \code{FALSE} otherwise.
45
  attribute of length 2) and \code{FALSE} otherwise.
41
 
46
 
42
  \code{as.matrix} is a generic function. The method for data frames
47
  \code{as.matrix} is a generic function. The method for data frames