vec_to_mat_add_diag | R Documentation |
Create a matrix from a vector
vec_to_mat_add_diag(vec, ncol)
vec |
a numeric vector |
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.