discrete.dist | R Documentation |
Apply the discrete metric to two scores.
discrete.dist(x, y)
x |
a score. |
y |
a score. |
This function applies the discrete metric to two scores. This is an appropriate distance function for nominal data.
0 if x
is equal to y
, 1 if x
is not equal to y
, NA
if either score is NA
.
L1.dist
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.