leven_dist: Levenshtein distance.

Description Usage Arguments Examples

View source: R/wordly_functions.R

Description

Takes in output from the 'expand_matrix_text' function and returns the Levenshtein distance between each word-by-word combination.

Usage

1
leven_dist(mat_in, col_num_1 = 1, col_num_2 = 2)

Arguments

mat_in

The output from the 'expand_matrix_text' function.

col_num_1

The numerical column index for the first column of words.

col_num_2

The numerical column index for the second column of words.

Examples

1
2
leven_dist(expand_matrix_text(c("duck", "pig", "cat"), c("dog", "cat")))
leven_dist(expand_matrix_text("HEllo I'm me", "hI tHeRe"))

tomathon-io/wordly documentation built on June 15, 2020, 12:41 a.m.