knn_dist.character | R Documentation |
Computes the distance between two character vectors using string distance metrics.
## S3 method for class 'character'
knn_dist(x, y)
x |
A character vector. |
y |
A character vector. |
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.
A numeric vector of distances between the elements of x
and y
computed using the stringdist
package.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.