powered by
Allocates an empty vector, matrix or array faster than the corresponding function in R.
allocMatrix(nrow, ncol, value = 0, ...)allocVector(length, value = 0, ...)allocArray(dim, value = 0, ...)
allocVector(length, value = 0, ...)
allocArray(dim, value = 0, ...)
Returns a vector, matrix and array respectively of the same data type as value.
vector
matrix
array
value
A numeric scalar that all elements will have as value.
numeric
numerics specifying the dimension of the created vector, matrix or array.
Henrik Bengtsson
See also vector, matrix and array.