Returns a row of a sparse matrix of class dgRMatrix. Function made by Ben Bolker and Ott Toomet (see https://stackoverflow.com/questions/47997184/)
extract_row_dgRMatrix(m, i = 1)
m
: a sparse matrix of class dgRMatrixi
: the index of the row to returnA row (numerical vector) of the sparse matrix
Useful links