Learn R Programming

psycho (version 0.6.1)

find_matching_string: 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.

Examples

Run this code
# NOT RUN {
library(psycho)
find_matching_string("Hwo rea ouy", c("How are you", "Not this word", "Nice to meet you"))
# }

Run the code above in your browser using DataLab