get_min_dist: Get the minimum edit distance for a row in a matrix

Description Usage Arguments Value Examples

View source: R/str_distances.R

Description

We often want to know which string from among a set of strings is the most- similar. stringdistmatrix provides a matrix of distances between one or two vectors of strings. This function returns the minimum distance for one row (x) of the matrix.

Usage

1
get_min_dist(mat, x)

Arguments

mat

A matrix of edit distances

x

The row number for which to find the minimum edit distance

Value

The minimum edit distance between the string corresponding to row x

Examples

1
2
3
4
## Not run: 
get_min_dist(mat=amat, x=2)

## End(Not run)

jacob-ogre/hcphb documentation built on May 18, 2019, 8:01 a.m.