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 June 24, 2024, 5:16 p.m.