powered by
Calculate the percentage of a vector above some threshold
PercentAbove(x, threshold)
Returns the percentage of x values above the given threshold
x
Vector of values
Threshold to use when calculating percentage
set.seed(42) PercentAbove(sample(1:100, 10), 75)
Run the code above in your browser using DataLab