matrix_to_list_of_cols | R Documentation |
Given a matrix, create a list, each element of which contains a column or row from the matrix.
matrix_to_list_of_cols(m)
matrix_to_list_of_rows(m)
m |
A matrix |
matrix_to_list_of_cols()
and 'matrix_to_list_of_rows() are
internal functions, for use by developers, and would not
normally be called directly by end users.
matrix_to_list_of_cols()
A list of vectors,
each of which is a column from x
.
matrix_to_list_of_rows()
, A list of vectors,
each of which is a row from x
.
m <- matrix(1:12, nrow = 3)
matrix_to_list_of_cols(m)
matrix_to_list_of_rows(m)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.