matrix_to_vector | R Documentation |
convert a matrix to a 1d vector
matrix_to_vector(mat, by = "column")
mat |
matrix |
by |
one of |
test_mat = matrix(1:12, ncol=4, byrow = FALSE)
test_mat
matrix_to_vector(test_mat)
matrix_to_vector(test_mat, by ='row')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.