Description Usage Arguments Details Value Examples
Returns a vector of most similar string in another vector. Returns a vector of the same length as input vector '.s'.
1 2 3 4 5 6 7 8 9 |
.s |
a character vector to be matched. |
.t |
a character vector to be matched against. |
max_dist |
the maximum string distance |
verbose |
should warnings be printed in the console. |
ignore_case |
should case be ignored? Default is TRUE. |
feeling_lucky |
if multiple most similar strings are found. Should the first one be returned? |
... |
other arguments passed to utils::adist. |
Uses the generalized Levenshtein distance. For more information type ?utils::adist
in the console.
a character vector
1 | find_most_similar_string(c("battman", "Irn Man"), superheroes)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.