redim | R Documentation |
Write new dimension vector while keeping the old memory
redim(x, di)
x |
A numeric array |
di |
An integer vector, new dimensions |
None
a=matrix(as.double(1:12), 6, 2)
redim(a, c(3, 4))
dim(a)
# [1] 3 4
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.