Description Usage Arguments Value See Also Examples
Change shape and size of a matrix or array.
1 |
x |
A matrix or multi-way array. |
nrow |
The desired number of rows. |
ncol |
The desired number of columns. |
... |
Further dimensions of the array. |
across |
Character string specifying whether to flatten the matrix
across |
byrow |
Logical. If FALSE (default) the new matrix is filled by columns, otherwise it is filled by rows. This option is ignored for multi-way arrays. |
A matrix with dimension nrow
-by-ncol
.
1 2 3 4 | |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.