Returns the range extended by a given proportion.
Details
If the regular range returns a single value, the proportion is computed on this value itself (and not on the range).
Author
Mathieu Basille <mathieu@basille.org>
Examples
extrange(0:10)
#> [1] -1 11
extrange(0:10, percent = .5)
#> [1] -5 15
extrange(-10:10)
#> [1] -12 12
extrange(rep(10, 3))
#> [1] 9 11