bed_reldist: Compute relative distances between intervals.
Description
Compute relative distances between intervals.
Usage
bed_reldist(x, y, detail = FALSE)
Value
If detail = FALSE, a ivl_df that summarizes
calculated .reldist values with the following columns:
.reldist relative distance metric
.counts number of metric observations
.total total observations
.freq frequency of observation
If detail = TRUE, the .reldist column reports the relative
distance for each input x interval.
Arguments
x
ivl_df
y
ivl_df
detail
report relative distances for each x interval.
Details
Interval statistics can be used in combination with
dplyr::group_by() and dplyr::do() to calculate
statistics for subsets of data. See vignette('interval-stats') for
examples.