Learn R Programming

campfin (version 1.0.11)

str_dist: Calculate string distance

Description

This function wraps around stringdist::stringdist().

Usage

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

Value

The distance between string a and string b.

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().

Examples

Run this code
str_dist(a = "BRULINGTN", b = "BURLINGTON")

Run the code above in your browser using DataLab