pick_bestmatch_value: Fuzzy matching functions

View source: R/pick_bestmatch_value.R

pick_bestmatch_valueR Documentation

Fuzzy matching functions

Description

Functions to match text using fuzzy matching from a vector of possible matches. Bases on 'stringdist' functions. Note: the 'stringdist' package is required to be installed to run these functions.

Usage

pick_bestmatch_value(string_vector, string_tomatch, method = "jaccard")

Arguments

string_vector

a character vector of possible values

string_tomatch

a single character value for which a match is requested

method

Method for distance calculation. The default is "jaccard", see stringdist-metrics.

Value

'pick_bestmatch_index' returns the integer index for the best-scoring match “ 'pick_bestmatch_value' returns the character value for the best-scoring match.

'pick_bestmatch_score' returns the calculated score for the best-scoring match.

See Also


JMLuther/tabletools documentation built on July 1, 2024, 2:01 p.m.