View source: R/stackByColumn.R
stackByColumn | R Documentation |
This is one of several related convenience functions designed to convert vectors into matrices or matrices into vectors, either by row or by column.
stackByColumn(IN, nrow, ncol)
IN |
An integer or numeric vector. |
nrow |
The number of rows in the final matrix. |
ncol |
The number of columns in the final matrix. |
This function is almost the same as
matrix
, with byrow = FALSE
, and
there are no dimnames or attributes in this function.
A ncol x nrow matrix with no attributes
stackByRow
, vectorizeByColumn
,
vectorizeByRow
stackByColumn(IN = 1:20, nrow = 5, ncol = 4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.