View source: R/pick_bestmatch_value.R
pick_bestmatch_value | R Documentation |
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.
pick_bestmatch_value(string_vector, string_tomatch, method = "jaccard")
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 |
'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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.