Calculate the percentage of a vector above some threshold
PercentAbove(x, threshold)
Arguments
x |
Vector of values |
threshold |
Threshold to use when calculating percentage |
Value
Returns the percentage of x
values above the given threshold
Examples
#> [1] 0.2