View source: R/select_metric.R
select_metric | R Documentation |
Uses heuristic algorithm to suggest a stringdist metric from among hamming, lv, osa, dl, lcs, jw
select_metric(messy_v, clean_v)
messy_v |
a messy vector of strings |
clean_v |
a vector of strings for messy_v to be matched against |
for each metric, measures certainty via the difference between the best matches for each word and the average of all matches for each word
a string representing the suggested stringdist metric
stringdist
select_metric(c("aapple", "bamana", "clemtidne"), c("apple", "banana", "clementine"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.