knn_dist.character: K-Nearest Neighbors Distance for Character Vectors

View source: R/knn_c.R

knn_dist.characterR Documentation

K-Nearest Neighbors Distance for Character Vectors

Description

Computes the distance between two character vectors using string distance metrics.

Usage

## S3 method for class 'character'
knn_dist(x, y)

Arguments

x

A character vector.

y

A character vector.

Details

This method uses stringdist::stringdist to compute distances between elements of x and y. The distance metric used is the default from the stringdist package.

Value

A numeric vector of distances between the elements of x and y computed using the stringdist package.


COHHIO/clarity.looker documentation built on Sept. 6, 2024, 1:47 a.m.