asRowList | R Documentation |
Matrix to List of Matrix Rows
asRowList(x)
x |
matrix |
list with as many elements as there are rows in x
and each
element representing one row
x <- matrix(1:12, nrow = 3)
row_list <- asRowList(x)
for (i in 1:nrow(x)) print(identical(row_list[[i]], x[i, ]))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.