coverage: A function to calculate the coverage percentage

Usage Arguments Details Value Examples

View source: R/fdrFunctions.R

Usage

1
coverage(a, b)

Arguments

a

A vector of numerical or string elements

b

A vector of numerical or string elements

Details

The percentage of a that is covered by b

Value

A numeric value representing the coverage percentage of b for a which is defined as the ratio of intersection of a and b over the size of a

Examples

1
coverage(c('a','b','c'),c('b','c','d'))

Example output

Loading required package: e1071
Loading required package: openxlsx
Loading required package: VennDiagram
Loading required package: grid
Loading required package: futile.logger
Loading required package: lattice
[1] 66.7

SwathXtend documentation built on Nov. 8, 2020, 6:42 p.m.