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


netDx documentation built on Dec. 11, 2020, 2:01 a.m.