distdex: Identify the index in a raveled 'dist' (upper triangle of...

Description Usage Arguments Details Value

View source: R/multivariate_funtional.R

Description

A extended idea as proposed on https://stackoverflow.com/a/12643509 by Christian A.

Usage

1
distdex(i, j, n, .check_order = T, .check_possible_ij = T)

Arguments

i

row index (either a single value or vector). i < j.

j

column index (either a single value or vector)

n

number of objects that created the dist object

.check_order

boolean (if we should check that i < j) and remove all values that don't follow that rule from returning.

.check_possible_ij

boolean (if we should check that i and j are not greater than n), and remove all values that don't follow that rule from returning.

Details

Note that i and j can be vectors, but if they're both vectors we don't return all combinations of each.

Value

requested indicies.


benjaminleroy/simulationBands documentation built on Dec. 19, 2021, 8:41 a.m.