did_you_mean

0th

Percentile

Suggest Alternatives

Helps to suggest alternatives from a list of strings, based on the string similarity in utils::adist().

Usage
did_you_mean(str, candidates)
Arguments
str

:: character(1) String.

candidates

:: character() Candidate strings.

Value

(character(1)). Either a phrase suggesting one or more candidates from candidates, or an empty string if no close match is found.

Aliases
  • did_you_mean
Examples
# NOT RUN {
did_you_mean("yep", c("yes", "no"))
# }
Documentation reproduced from package mlr3misc, version 0.1.0, License: LGPL-3

Community examples

Looks like there are no examples yet.