powered by
These functions duplicate the approach of the 'fuzzywuzzy' Python library for calculating string similarity.
fuzzdist( a, b, method = c("fuzz_m_ratio", "fuzz_partial_ratio", "fuzz_token_sort_ratio", "fuzz_token_set_ratio") )fuzz_m_ratio(a, b)fuzz_partial_ratio(a, b)fuzz_token_sort_ratio(a, b)fuzz_token_set_ratio(a, b)
fuzz_m_ratio(a, b)
fuzz_partial_ratio(a, b)
fuzz_token_sort_ratio(a, b)
fuzz_token_set_ratio(a, b)
A character vector of items to match to b.
A character vector of items to match to a.
The method to use for fuzzy matching.
Returns a score of same length as b, giving the proportional dissimilarity between a and b.
# NOT RUN { fuzzdist("On the Origin of Species", "Of the Original Specs", method = "fuzz_m_ratio") # }
Run the code above in your browser using DataLab