Description Usage Arguments Value Examples
The fraction of overlap is relative to Range X (see examples).
1 | perc_overlap(x.start, x.end, y.start, y.end)
|
x.start |
The start value for Range X |
x.end |
The end value for Range X |
y.start |
The start value for Range Y |
y.end |
The end value for Range Y |
the percent overlap of the ranges
1 2 3 4 5 6 7 | ## Not run:
x = HTSSIP:::perc_overlap(0, 1, 0, 0.5)
stopifnot(x == 50)
x = HTSSIP:::perc_overlap(0, 0.5, 0, 1)
stopifnot(x == 100)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.