resize {multbxxc} | R Documentation |
New Dimensions with Resizing
Description
Write new dimension vector while keeping the old memory if possible New memory cannot be greater than the very first allocation
Usage
resize(x_, di)
Arguments
x_ |
A numeric array |
di |
An integer vector, new dimensions |
Value
None
Examples
a=matrix(as.double(1:12), 6, 2)
resize(a, c(2, 2))
a
# [,1] [,2]
# [1,] 1 3
# [2,] 2 4
[Package multbxxc version 1.0.2 Index]