str_dist: Calculate string distance

View source: R/str-dist.R

str_distR Documentation

Calculate string distance

Description

This function wraps around stringdist::stringdist().

Usage

str_dist(a, b, method = "osa", ...)

Arguments

a

R object (target); will be converted by base::as.character().

b

R object (source); will be converted by base::as.character().

method

Method for distance calculation. The default is "osa."

...

Other arguments passed to stringdist::stringdist().

Value

The distance between string a and string b.

Examples

str_dist(a = "BRULINGTN", b = "BURLINGTON")

campfin documentation built on Oct. 20, 2023, 5:06 p.m.