did_you_mean | R Documentation |
Helps to suggest alternatives from a list of strings, based on the string similarity in utils::adist()
.
did_you_mean(str, candidates)
str |
( |
candidates |
( |
(character(1)
). Either a phrase suggesting one or more candidates from candidates
,
or an empty string if no close match is found.
did_you_mean("yep", c("yes", "no"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.