Description Usage Arguments Examples
Find the best match (or no match at all) to string inputs.
1 | match_maker(e, matches, max_dist = 5)
|
e |
An character |
matches |
A vector in which to look for matches with e. |
max_dist |
Set maxDist to be used in stringdist::amatch |
1 2 3 4 5 6 7 8 9 10 | iris <- iris %>% tibble::as_tibble()
iris %>% dplyr::mutate(
foo = purrr::map_chr(as.character(Species), match_maker,
matches = c("Virginia", "California", "Sarasota"))
)
iris %>% dplyr::mutate(
foo = purrr::map_chr(as.character(Species), match_maker,
matches = c("Virginia", "California", "Sarasota"), max_dist = 20)
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.