intersectMatrix function

Take intersection of 2 tables

Take intersection of 2 tables

intersectMatrix takes 2 matrices and outputs their intersection based on common row.names.

intersectMatrix(Tab1, Tab2)

Arguments

  • Tab1: A matrix or data frame with defined row.names
  • Tab2: A matrix or data frame with defined row.names

Returns

A matrix with rows common to both Tab1 and Tab2, and concatenated columns.

Details

This function takes 2 matrices as input, determines the intersection of their row names, and returns a single matrix containing the rows in the intersection and concatenated columns of the initial matrices.

  • Maintainer: Carine Legrand
  • License: GPL (>= 2)
  • Last published: 2017-12-15

Useful links