Learn R Programming

LOMAR (version 0.5.0)

idx2rowcol: idx2rowcol

Description

Convert indices into a dist object to row, column coordinates of the corresponding distance matrix

Usage

idx2rowcol(idx, n)

Value

a matrix with two columns nr and nc

Arguments

idx

vector of indices

n

size of the n x n distance matrix