is_similar: is_similar

Description Usage Arguments Value

View source: R/is_similar.R

Description

Get if two names are similar based on the distance between them. If the difference is superior of the threshold, then there is no match

Usage

1
2
3
4
5
6
is_similar(
  name1,
  name2,
  threshold = 1,
  r_letters = c(K = "C", W = "V", Y = "I", Z = "S")
)

Arguments

name1

vector of names (character type)

name2

vector of names (character type)

threshold

integer, max difference between two words (see namedist)

r_letters

named vector of letter to replace (see replace_letters)

Value

TRUE or false based on the threshold


AurelieFrechet/neaReastName documentation built on Jan. 31, 2021, 12:41 a.m.