Helper function: get percentile
Usage
get_percentile(percent_within_minmax = 0.9)
Arguments
- percent_within_minmax
percent of data point within min/max (default:
0.9 i.e. 90 percent)
Examples
get_percentile(0.9)
#> [1] 1.644854
get_percentile(0.95)
#> [1] 1.959964