View source: R/align_matrices.R
align_matrix_rows | R Documentation |
Align the rows of two matrices using their row names, omitting rows that are not present in both.
align_matrix_rows(x, y)
x |
A matrix |
y |
Another matrix |
A list with the input x
and y
matrices, with the rows
aligned using their names. Rows not in both matrices are
omitted.
align_matrix_cols()
# using the provided lineup2ex data (a list of two matrices)
# reduces to the common rows and puts the rows in the same order
# (using the row names)
aligned <- align_matrix_rows(lineup2ex$gastroc, lineup2ex$islet)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.