Skip to contents

Creates comparison levels based on the Jaro similarity score (0 to 1). A simpler variant of cl_jaro_winkler() without the prefix bonus.

Usage

cl_jaro(..., term_frequency = FALSE)

Arguments

...

Numeric thresholds between 0 and 1, ordered from strictest to most lenient.

term_frequency

Logical. If TRUE, adjust match weights by value frequency at the highest comparison level. Defaults to FALSE.

Value

A comparison-level object for use in il_compare().

Examples

il_spec() |>
  il_compare(name, cl_jaro(0.9))
#> Linkage Specification
#>   Comparisons (1):
#>     name : jaro
#>   Blocking rules: (none)