| BinaryComp | R Documentation |
Compares a pair of strings or sequences based on whether they are identical or not.
BinaryComp(score = 1, similarity = FALSE, ignore_case = FALSE)
score |
a numeric of length 1. Positive distance to return if the pair of strings/sequences are not identical. Defaults to 1.0. |
similarity |
a logical. If TRUE, similarities are returned instead of
distances. Specifically |
ignore_case |
a logical. If TRUE, case is ignored when comparing strings. |
If similarity = FALSE (default) the scores can be interpreted
as distances. When x = y the comparator returns a distance of 0.0,
and when x \neq y the comparator returns score.
If similarity = TRUE the scores can be interpreted as similarities.
When x = y the comparator returns score, and when x \neq y
the comparator returns 0.0.
A BinaryComp instance is returned, which is an S4 class inheriting from
StringComparator.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.