Description Usage Arguments Examples
View source: R/fuzzy_matches.R
Replaces all strings in the dirty_list (usually handtyped) with close strings from the clean list (if those exist).
1 | fuzzy_matches(clean_vec,dirty_vec)
|
clean_vec |
input vector; the vector which contains reference strings which are used as potential replacements. |
dirty_vec |
input vector; the vector which contains handtyped strings for which you want to find inexact matches. |
find_cutoff |
Boolean value; if TRUE, the calculation will return a dataframe with possible 'best_fit' suggestions. This allows users to choose a reasonable 'cutoff_distance'. Default: FALSE. |
cutoff_distance |
Maximum similarity between two strings up to which one will be replaced by the other. Default 0.06. |
1 | fuzzy_matches(c("bookstore","telephone"),c("Telefone","bookstroe"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.