powered by
Finds the top and bottom bounds corresponding to percentile 'pc' of the data 'dat'.
pctile(dat, pc = 0.01)
numeric vector of data
the percentile to seek, c(pc, 1-pc)
returns the upper and lower threshold
# NOT RUN { pctile(rnorm(100000),.025) pctile(sample(100),.9) # }
Run the code above in your browser using DataLab