powered by
Find the percentile of the value specified in numeric vector.
get_percentile(x, value, from = 0, to = 1, eps = 1e-06)
list. Components of list. is as follows.
percentile : numeric. Percentile position of value. It has a value between [0, 100].
is_outlier : logical. Whether value is an outlier.
numeric. a numeric vector.
numeric. a scalar to find percentile value from vector x.
numeric. Start interval in logic to find percentile value. default to 0.
numeric. End interval in logic to find percentile value. default to 1.
numeric. Threshold value for calculating the approximate value in recursive calling logic to find the percentile value. (epsilon). default to 1e-06.
carat <- ggplot2::diamonds$carat quantile(carat) get_percentile(carat, value = 0.5) get_percentile(carat, value = median(carat)) get_percentile(carat, value = 1) get_percentile(carat, value = 7)
Run the code above in your browser using DataLab