idx2rowcol: idx2rowcol

View source: R/utils.R

idx2rowcolR 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


LOMAR documentation built on Sept. 27, 2024, 1:06 a.m.