Description Usage Arguments Value See Also Examples
Overlap coefficient, also known as Szymkiewicz-Simpson coefficient
1 2 3 | overlapCoefficient(x, y, checkUniqueNonNA = FALSE)
overlapDistance(x, y, checkUniqueNonNA = FALSE)
|
x |
A vector |
y |
A vector |
checkUniqueNonNA |
Logical, if |
The overlap coefficient
overlapCofficient
calculates the overlap coefficient, and
overlapDistance
is defined by 1-overlapCoefficient
.
1 2 3 4 5 6 7 8 9 10 11 | myX <- 1:6
myY <- 4:9
overlapCoefficient(myX, myY)
myY2 <- 4:10
overlapCoefficient(myX, myY2)
## compare the result with Jaccard Index
jaccardIndex(myX, myY2)
## overlapDistance
overlapDistance(myX, myY2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.