make_long_form | R Documentation |
Each row represents a cell in the matrix (rowname, column name, value). If the matrix is symmetric, there will be one row for each symmetric pair (i.e. the number of rows in the long-form data frame will be half the number of elements in the input matrix). If the matrix is asymmetric, all rows will be kept (i.e. the number of rows in the long-form data frame will be equal to the number of elements in the input matrix).
make_long_form(facil_dist, col_names = c("loc1", "loc2", "fsp"))
facil_dist |
symmetric or asymmetric matrix that you want to convert to long form. |
col_names |
Column names for the output data frame (3 columns - rownames, colnames, values) |
long form data where each row represents a cell in the matrix (rowname, column name, value)
make_long_form(fsp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.