Description Usage Arguments Examples
return resulted strings of approximate string match
1 2 3 |
fuzzy_input |
A character. Typically user input. |
possibilities |
A character vector one of which is assumed to be pointed by fuzzy_input. |
n_top |
An integer specifying the number of returned strings. |
case_sensitive |
Default is FALSE. |
cost |
A named vector |
threshold |
If costs are more than threshold,
remove them from the result
even if they are within top |
debug |
If true, it shows costs for top candidates.
|
1 2 3 4 5 | get_analogue("axis.txt", c("axis.text", "axis.text.x", "axis.ticks"))
# returns "axis.text" "axis.text.x" "axis.ticks"
get_analogue("p.bg", c("plot.background", "panel.background"))
# returns "plot.background" as first, and then "panel.background"
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.