View source: R/editdist_multi.R
editdist_multi | R Documentation |
Compute edit distance
editdist_multi(input, reference, inp_esc = FALSE, ref_esc = FALSE, len = 1L)
editdist_norm(s1, s2, editdist, len = 1L)
input |
Vector of string to be compared. |
reference |
Vector of string to be compared. |
len |
integer 1: when checking scientific name, 6: when checking wamei (Japanese name). |
s1 |
A string to be compared. |
s2 |
A string to be compared. |
Tibble.
editdist_norm()
: Compute normalised edit distance
editdist()
library(wameicheckr)
library(tidyverse)
library(stringi)
input <-
c("\\u30cf\\u30c3\\u30ab\\u30b0\\u30b5",
"\\u30b9\\u30ba\\u30ce\\u30a8\\u30f3\\u30c9\\u30a6") %>%
stringi::stri_unescape_unicode()
reference <-
c("\\u30cf\\u30b7\\u30ab\\u30b0\\u30b5",
"\\u30b9\\u30ba\\u30e1\\u30ce\\u30a8\\u30f3\\u30c9\\u30a6") %>%
stringi::stri_unescape_unicode()
editdist_multi(input = input, reference = reference, len = 6)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.