orthographic_dist: Compute Absolute and Relative Orthographic Distance

Description Usage Arguments Value

View source: R/orthographic_distance.R

Description

This function computes the absolute and relative orthographic distance as discussed in Meyer et al. (2016). Absolute orthographic distance is also known as Levenshtein distance, informally defined as the number of corrections necessary to reach a string from another. Relative orthographic distance is the absolute distance divided by the length of the string. Here, the relative distance is obtained as the Levenshtein distance divided by the average length of the strings.

Usage

1
orthographic_dist(x, y, parallel = FALSE, n_cores = 4)

Arguments

x

first string or vector of strings.

y

second string or vector of strings.

parallel

TRUE/FALSE if to run in parallel.

n_cores

number of cores for parallel computation.

Value

a data.frame with absolute and relative orthographic distances.


emilio-berti/taxclean documentation built on May 30, 2021, 5:19 p.m.