1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/allocMatrix.R
\name{allocMatrix}
\alias{allocMatrix}
\alias{allocVector}
\alias{allocArray}
\title{Allocates an empty vector, matrix or array}
\usage{
allocMatrix(nrow, ncol, value = 0, ...)
allocVector(length, value = 0, ...)
allocArray(dim, value = 0, ...)
}
\arguments{
\item{value}{A \code{\link[base]{numeric}} scalar that all elements will
have as value.}
\item{length, nrow, ncol, dim}{\code{\link[base]{numeric}}s specifying the
dimension of the created \code{\link[base]{vector}},
\code{\link[base]{matrix}} or \code{\link[base]{array}}.}
}
\value{
Returns a \code{\link[base]{vector}}, \code{\link[base]{matrix}} and
\code{\link[base]{array}} respectively of the same data type as
\code{value}.
}
\description{
Allocates an empty vector, matrix or array faster than the corresponding
function in R.
}
\seealso{
See also \code{\link[base]{vector}}, \code{\link[base]{matrix}} and
\code{\link[base]{array}}.
}
\author{
Henrik Bengtsson
}
\keyword{internal}
\keyword{programming}
|