find_closest_matches: Find closest matches in distance matrix

View source: R/summarize_dataset.R

find_closest_matchesR Documentation

Find closest matches in distance matrix

Description

Given a distance matrix with samples on rows and names on columns, return a list of vectors with the closest-matching names for each sample.

Usage

find_closest_matches(dist_mat, range = 2, maximum = 8)

Arguments

dist_mat

matrix of distance values, such as produced by make_dist_mat and make_dist_mat_known.

range

optional numeric for distances to each set of nearby names, relative to the closest match.

maximum

optional numeric maximum value for any distance.

Value

list of named vectors containing distances for each sample.


ressy/microsat documentation built on Aug. 24, 2023, 10:09 a.m.