vec_to_mat | R Documentation |
Create a matrix from a vector
vec_to_mat(vec, ncol, diag)
vec |
a numeric vector |
diag |
a boolean indicating with the argument vec have the diagonal information in it. |
n |
number of columns of the matrix to create |
A square matrix
Sebastian Sosa.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.