matrix_getIJ {netDx}R Documentation

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

Description

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

Usage

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


[Package netDx version 1.0.3 Index]