find_matching_string: Fuzzy string matching.

Description Usage Arguments Author(s) Examples

View source: R/miscellaneous.R

Description

Fuzzy string matching.

Usage

1
find_matching_string(x, y, value = TRUE, step = 0.1, ignore.case = TRUE)

Arguments

x

Strings.

y

List of strings to be matched.

value

Return value or the index of the closest string.

step

Step by which decrease the distance.

ignore.case

if FALSE, the pattern matching is case sensitive and if TRUE, case is ignored during matching.

Author(s)

Dominique Makowski

Examples

1
2
library(psycho)
find_matching_string("Hwo rea ouy", c("How are you", "Not this word", "Nice to meet you"))

psycho documentation built on Jan. 19, 2021, 9:07 a.m.