get_pair_matrix: Subset a matrix as a vector using row and column positions

View source: R/util.R

get_pair_matrixR Documentation

Subset a matrix as a vector using row and column positions

Description

Subset a matrix as a vector using row and column positions

Usage

get_pair_matrix(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 with values extracted from m at [rows/cols]


AllenInstitute/scrattch.hicat documentation built on Oct. 20, 2023, 6:55 a.m.