R/util.R
set_pair_matrix.Rd
Update a matrix with values from a 1d vector using row and column positions
set_pair_matrix(m, rows, cols, vals)
a matrix object
row positions, either as indices or matches to row names
values to insert at [rows/cols]
a matrix with updated values