editdist_multi: Compute edit distance

View source: R/editdist_multi.R

editdist_multiR Documentation

Compute edit distance

Description

Compute edit distance

Usage

editdist_multi(input, reference, inp_esc = FALSE, ref_esc = FALSE, len = 1L)

editdist_norm(s1, s2, editdist, len = 1L)

Arguments

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.

Value

Tibble.

Functions

  • editdist_norm(): Compute normalised edit distance

See Also

editdist()

Examples

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)


matutosi/wameicheckr documentation built on Aug. 14, 2024, 4:39 p.m.