Description Usage Arguments Value Examples
A convenience function which melts the matrix and then joins row and column information.
1 2 3 4 5 6 | matrix_long(
matrix,
row_info = NULL,
col_info = NULL,
varnames = c("name", "col")
)
|
matrix |
A matrix, or object that can be converted to a matrix. |
row_info |
Information about rows of the matrix. A data frame, or object that can be converted to a data frame. |
col_info |
Information about columns of the matrix. A data frame, or object that can be converted to a data frame. |
varnames |
Vector of two column names in the output, the first for the row and the second for the column. |
A data frame containing the matrix and associated information in long format.
1 | matrix_long(weitrix_x(simwei), rowData(simwei), colData(simwei))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.