The R Project SVN R

Rev

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

Rev 45616 Rev 47054
Line 20... Line 20...
20
\arguments{
20
\arguments{
21
  \item{data}{a vector (including a list) giving data to fill the array.}
21
  \item{data}{a vector (including a list) giving data to fill the array.}
22
  \item{dim}{the dim attribute for the array to be created, that is a
22
  \item{dim}{the dim attribute for the array to be created, that is a
23
    vector of length one or more giving the maximal indices in
23
    vector of length one or more giving the maximal indices in
24
    each dimension.}
24
    each dimension.}
25
  \item{dimnames}{the names for the dimensions. This is a list with one
25
  \item{dimnames}{either \code{NULL} or the names for the
-
 
26
    dimensions. This is a list with one component for each dimension,
-
 
27
    either \code{NULL} or a character vector of the length given by
26
    component for each dimension, either NULL or a character vector of
28
    \code{dim} for that dimension.  The list can be named, and the list names
27
    the length given by \code{dim} for that dimension.  The list can be
29
    will be used as names for the dimensions.  If the list is shorter
28
    names, and the names will be used as names for the dimensions.}
30
    than the number of dimensions, it is extended by \code{NULL}s to the
-
 
31
    length required}
29
  \item{x}{an \R object.}
32
  \Item{x}{an \R object.}
30
  \item{\dots}{additional arguments to be passed to or from methods.}
33
  \item{\dots}{additional arguments to be passed to or from methods.}
31
}
34
}
32
\value{
35
\value{
33
  \code{array} returns an array with the extents specified in \code{dim}
36
  \code{array} returns an array with the extents specified in \code{dim}
34
  and naming information in \code{dimnames}.  The values in \code{data} are
37
  and naming information in \code{dimnames}.  The values in \code{data} are