align_matrix_rows: Align the rows of two matrices

Description Usage Arguments Value See Also Examples

View source: R/align_matrices.R

Description

Align the rows of two matrices using their row names, omitting rows that are not present in both.

Usage

1

Arguments

x

A matrix

y

Another matrix

Value

A list with the input x and y matrices, with the rows aligned using their names. Rows not in both matrices are omitted.

See Also

align_matrix_cols()

Examples

1
2
3
4
# 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)

lineup2 documentation built on June 15, 2021, 9:07 a.m.