Description Usage Arguments Value
View source: R/orthographic_distance.R
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.
1 | orthographic_dist(x, y, parallel = FALSE, n_cores = 4)
|
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. |
a data.frame with absolute and relative orthographic distances.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.