Description Usage Arguments Details Value Examples
View source: R/fuzzy_replace.R
Search for a word or phrase in a second vector that matches the another word in the first vector.
1 | fuzzy_search(x = NULL, y = NULL)
|
x |
The vector with strings to be searched for in the second vector |
y |
The vector with usually the correct strings to be found |
This is a helpful function to correct city names according to IBGE names, when the list is to long to correct by hand.
A vector of best matches from y based on the x input vector.
1 2 3 | wrong_names<-c("Mogi das Cruses","Sao Paulo","CANTA GALLO")
correct_names<-c("Canta Galo","Mogi das Cruzes","S<c3><a3>o Paulo")
fuzzy_search(x=wrong_names,y=correct_names)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.