soundex_difference: Calculate the Soundex difference

Description Usage Arguments Details Value Author(s) Examples

View source: R/soundex.R

Description

Calculate the Soundex difference for two strings str_1 and str_2

Usage

1
soundex_difference(str_1, str_2, algorithm = soundex_algorithm("en"))

Arguments

str_1

first string for calculating the distance

str_2

second string for calculating the distance

algorithm

object with the soundex algorithm

Details

The returned value is the number of characters in the Soundex values that are the same. The return value ranges from 0 through 4: 0 indicates weak or no similarity, and 4 indicates strong similarity or the same values.

Value

an integer that indicates the difference between the Soundex codes

Author(s)

Daniel Rodriguez Perez

Examples

1
soundex_difference('saturday', 'sunday')

drodriguezperez/financialsanctions documentation built on May 17, 2019, 2:42 p.m.