probably more of an internal function...

which_index(x, index, margin = 1)

# S3 method for tidy_dist_mat
which_index(x, index, margin = 1)

which_not_index(x, index, margin = 1)

# S3 method for tidy_dist_mat
which_not_index(x, index, margin = 1)

Arguments

x

tidy_dist_mat object

index

data.frame index associated with x's colnames or rownames (related to margin). If which_not_index then this is which associated information *not* to include.

margin

scalar representing if index is related to rows or columns of x. 1 = row, 2 = column.

Value

index values associated with rows or columns of x