similarity_coeff {rscc} | R Documentation |
similarity_coeff
Description
Computes a similarity coefficient based on the unique elements set1
and set2
in relation to setfull
. If setfull
is NULL
then setfull
is set
to unique(c(set1, set2))
. For more details, see the vignette vignette("rscc")
.
Usage
similarity_coeff(
set1,
set2,
setfull = NULL,
coeff = c("jaccard", "braun", "dice", "hamann", "kappa", "kulczynski", "ochiai",
"phi", "russelrao", "matching", "simpson", "sneath", "tanimoto", "yule")
)
Arguments
set1 |
vector: elements to compare |
set2 |
vector: elements to compare |
setfull |
vector: elements to compare (default: |
coeff |
character: coefficient to compute (default: |
Value
a numeric similarity coefficient
Examples
s1 <- 1:3
s2 <- 1:5
similarity_coeff(s1, s2)
s1 <- letters[1:3]
s2 <- LETTERS[1:5]
similarity_coeff(s1, s2)
[Package rscc version 0.2.1 Index]