Compute Jaccard similarity between two sets.

jaccard(x, y)

Arguments

x

First set.

y

Second set.

Value

Jaccard similarity between set x and y.

See also

Other pathway similarity methods: overlap_coefficient()

Examples

jaccard(c(1, 2, 3), c(2, 3, 4))
#> [1] 0.5