View source: R/DistanceMatrix.R
Calculates the (normalized) Hamming or Jaccard distance of two binary vectors. This can be used to compare two rows of an alignment matrix, where a ? marks missing entries. If normalized=FALSE and removeZeroes=FALSE, this is the classical Hamming distance. If normalized=TRUE and removeZeroes=TRUE, it is the Jaccard distance.
1 2 | pairwiseDistance(x, y, normalized = TRUE, removeMissing = TRUE,
removeZeroes = FALSE)
|
x |
|
y |
|
normalized |
|
removeMissing |
|
removeZeroes |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.