matrix_long {weitrix} | R Documentation |
A convenience function which melts the matrix and then joins row and column information.
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.
matrix_long(weitrix_x(simwei), rowData(simwei), colData(simwei))