Convert ij index to k index for a dist object

dist_ij_k_(i, j, size)

Arguments

i

row index

j

column index

size

value of size attribute of the dist object

Value

k index

Examples

dist_ij_k_(1, 3, 10)
#> [1] 2