Description Usage Arguments Author(s) Examples
View source: R/miscellaneous.R
Fuzzy string matching.
1 | find_matching_string(x, y, value = TRUE, step = 0.1, ignore.case = TRUE)
|
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. |
1 2 | library(psycho)
find_matching_string("Hwo rea ouy", c("How are you", "Not this word", "Nice to meet you"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.