discrete.dist: Apply the discrete metric to two scores.

View source: R/gower.R

discrete.distR Documentation

Apply the discrete metric to two scores.

Description

Apply the discrete metric to two scores.

Usage

discrete.dist(x, y)

Arguments

x

a score.

y

a score.

Details

This function applies the discrete metric to two scores. This is an appropriate distance function for nominal data.

Value

0 if x is equal to y, 1 if x is not equal to y, NA if either score is NA.

See Also

L1.dist


goweragreement documentation built on Sept. 11, 2024, 7:20 p.m.