align_matrix_cols {lineup2} | R Documentation |
Align the columns of two matrices
Description
Align the columns of two matrices using their column names, omitting columns that are not present in both.
Usage
align_matrix_cols(x, y)
Arguments
x |
A matrix |
y |
Another matrix |
Value
A list with the input x
and y
matrices, with the
columns aligned using their names. Columns not in both matrices
are omitted.
See Also
Examples
# using the provided lineup2ex data (a list of two matrices)
# reduces to the common columns and puts the columns in the same order
# (using the column names)
aligned <- align_matrix_cols(lineup2ex$gastroc, lineup2ex$islet)
[Package lineup2 version 0.6 Index]