lev_score_multiple | R Documentation |
Given a single input
string and multiple candidates
, compute scores for each candidate.
lev_score_multiple(input, candidates, .fn = lev_ratio, ..., decreasing = TRUE)
input |
A single string |
candidates |
One or more candidate strings to score |
.fn |
The scoring function to use, as a string or function object. Defaults to
|
... |
Additional arguments to pass to |
decreasing |
If |
A list where the keys are candidates
and the values are the scores. The list is sorted
according to the decreasing
parameter, so by default higher scores are first.
lev_best_match()
lev_score_multiple("bilbo", c("frodo", "gandalf", "legolas"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.