v2matrix | R Documentation |
Convert a vector to a matrix
v2matrix(x, ncol = 2, byrow = TRUE)
x |
vector |
ncol |
number of columns |
byrow |
logical. convert by row |
a matrix
v2matrix(c(1,2,3,4))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.