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

Description Usage Arguments Value

View source: R/util.R

Description

Subset a matrix as a vector using row and column positions

Usage

1
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 Nov. 6, 2018, 9:47 p.m.