oi: compute Overlap Index of two sets

Description Usage Arguments Examples

View source: R/data.R

Description

The Overlap Index of two sets is defined as the ratio of the size of the set intersection (common elements) and the size of the primary set.

Usage

1
oi(a, b)

Arguments

a

vector of set elements

b

vector of set elements

Examples

1
oi(c(1,2), c(2,3,4,5)) # one element out of two in "a" is present in "b"

tkonopka/shrt documentation built on March 5, 2020, 2:51 p.m.