levenshtein {SparkR}R Documentation

levenshtein

Description

Computes the Levenshtein distance of the two given string columns.

Usage

levenshtein(y, x)

## S4 method for signature 'Column'
levenshtein(y, x)

Arguments

y

Column to compute on.

x

Column to compute on.

Note

levenshtein since 1.5.0

See Also

Other string_funcs: ascii, base64, concat_ws, concat, decode, encode, format_number, format_string, initcap, instr, length, locate, lower, lpad, ltrim, regexp_extract, regexp_replace, reverse, rpad, rtrim, soundex, substring_index, translate, trim, unbase64, upper

Examples

## Not run: levenshtein(df$c, x)

[Package SparkR version 2.2.2 Index]