fuzzy_matches: Find inexact matches in a clean list of strings.

Description Usage Arguments Examples

View source: R/fuzzy_matches.R

Description

Replaces all strings in the dirty_list (usually handtyped) with close strings from the clean list (if those exist).

Usage

1
fuzzy_matches(clean_vec,dirty_vec)

Arguments

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.

Examples

1
fuzzy_matches(c("bookstore","telephone"),c("Telefone","bookstroe"))

richardvogg/fuzzymatch documentation built on May 19, 2021, 8:50 a.m.