Convert matrix row/column positions to vector position

get_pair_matrix_coor(m, rows, cols)

Arguments

m

a matrix object

rows

row positions, either as indices or matches to row names

cols

row positions, either as indices or matches to row names

Value

a vector containing the numeric position at [rows,cols]