overlap_coefficient: Calculate overlap coefficient

Description Usage Arguments Value See Also Examples

View source: R/GeneTonic-extras.R

Description

Calculate similarity coefficient between two sets, based on the overlap

Usage

1

Arguments

x

Character vector, corresponding to set 1

y

Character vector, set 2

Value

A numeric value between 0 and 1

See Also

https://en.wikipedia.org/wiki/Overlap_coefficient

Examples

1
2
3
a <- seq(1, 21, 2)
b <- seq(1, 11, 2)
overlap_coefficient(a,b)

GeneTonic documentation built on Nov. 8, 2020, 5:27 p.m.