dist_to_interval: Computes the (absolute, pairwise) distance between the vector elements and an interval
Description
Computes the (absolute, pairwise) distance between the vector elements and an interval
Usage
dist_to_interval(x, interval)
Arguments
- x
(numeric()
)
A numeric vector.
- interval
(numeric(2)
)
An interval.