v2matrix {arrowheadr} | R Documentation |
Convert a vector to a matrix
Description
Convert a vector to a matrix
Usage
v2matrix(x, ncol = 2, byrow = TRUE)
Arguments
x |
vector |
ncol |
number of columns |
byrow |
logical. convert by row |
Value
a matrix
Examples
v2matrix(c(1,2,3,4))
[Package arrowheadr version 1.0.1 Index]