Learn R Programming

matrixStats (version 0.12.2)

allocMatrix: Allocates an empty vector, matrix or array

Description

Allocates an empty vector, matrix or array faster than the corresponding function in R.

Usage

allocVector(length, value=0, ...)
 allocMatrix(nrow, ncol, value=0, ...)
 allocArray(dim, value=0, ...)

Arguments

length, nrow, ncol, dim
numerics specifying the dimension of the created vector, matrix or
value
A numeric scalar that all elements will have as value.
...
Not used.

Value

See Also

See also vector, matrix and array.