unroll | R Documentation |
Converts a square matrix or numeric data.frame to a the list of all values described with respect to the position of the indices. If are present present rows and cols names the information are adds like additional columns.
unroll(X, diag = FALSE, sparse = TRUE, symmetric = TRUE)
X |
matrix or data.frame |
diag |
includes or not include the diagonal |
sparse |
removes zero values |
symmetric |
if true select only the upper triangular values |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.