matrix_getIJ: Converts matrix index (1 to m*n) to row (m) and column (n)...

Description Usage Arguments Value

View source: R/matrix_getIJ.R

Description

Converts matrix index (1 to m*n) to row (m) and column (n) number

Usage

1
matrix_getIJ(dimMat, idx)

Arguments

dimMat

(integer vector of length 2) output of dim() for matrix in question

idx

(integer vector of length n) matrix indices

Value

(matrix) n-by-2, first column has row indices ; second column has col indices


BaderLab/netDx documentation built on Sept. 26, 2021, 9:13 a.m.