find_matching_string {psycho}R Documentation

Fuzzy string matching.

Description

Fuzzy string matching.

Usage

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

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

[Package psycho version 0.6.1 Index]