View source: R/shape_mat_long.R
shape_mat_long | R Documentation |
Convert a matrix to long format using row names and column names.
shape_mat_long(x, unique_pairs = FALSE, na_remove = FALSE)
x |
Matrix to convert to long format. |
unique_pairs |
Whether only unique combinations should be included in the output (for symmetric matrices). |
na_remove |
Logical indicating if NAs should be excluded (removes NaNs too). |
A data frame with the columns 'row', 'col' (indicating combinations), and 'value'.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.