idx2rowcol {LOMAR}R Documentation

idx2rowcol

Description

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

Usage

idx2rowcol(idx, n)

Arguments

idx

vector of indices

n

size of the n x n distance matrix

Value

a matrix with two columns nr and nc


[Package LOMAR version 0.4.0 Index]