set_pair_matrix: Update a matrix with values from a 1d vector using row and...

Description Usage Arguments Value

View source: R/util.R

Description

Update a matrix with values from a 1d vector using row and column positions

Usage

1
set_pair_matrix(m, rows, cols, vals)

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

vals

values to insert at [rows/cols]

Value

a matrix with updated values


AllenInstitute/scrattch.hicat documentation built on Nov. 6, 2018, 9:47 p.m.