m2v {demogR} | R Documentation |
m2v
Description
Utility that takes a matrix n x m and stacks its columns to form a column vector of length mn.
Usage
m2v(A)
Arguments
A |
an m x n matrix |
Value
For an m x n input matrix, returns a m*n x 1 matrix (i.e., a column vector).
Note
Meant to capture the MATLAB functionality of the colon operator, A(:)
See Also
Examples
A <- matrix(rnorm(9), nr=3, nc=3)
m2v(A)
[Package demogR version 0.6.0 Index]