closestMatch: Closest matches by edit distance between all non-matching...

Description Usage Arguments Value

View source: R/joins.R

Description

A typical use case is aligning merge keys when key variables may be fuzzy (e.g., merging pagePath to productName).

Usage

1
closestMatch(x, y, collapse = " // ", ignore.case = T)

Arguments

x, y

Character vectors whose non-identical elements will be compared for closest matches in the other vector.

collapse

String used to separate multiple closest-match key values in the case of ties.

ignore.case

Logical, if TRUE (default), case is ignored for computing the distances.

Value

Dataframe listing the closest matches (and corresponding edit distance) for all non-identical elements in x and y.


rebelrebel04/xplor documentation built on May 27, 2019, 4:01 a.m.