Discard rows or columns that are not present in both tables (columns by default). The row or column names are compared to determine whether they match.

intersectTables(table1, table2, byRow = FALSE, keepSumNonMatched = FALSE)

Arguments

table1

a matrix

table2

a matrix

byRow

compare tables row-wise

keepSumNonMatched

keep the sum of non-matching rows as last row (row name: sumUnique)

Value

a list with the two tables with matching sample names