coverage {SwathXtend}R Documentation

A function to calculate the coverage percentage

Usage

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

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

[Package SwathXtend version 2.10.0 Index]