powered by
Finds the top and bottom bounds corresponding to percentile 'pc' of the data 'dat'.
pctile(dat, pc = 0.01)
returns the upper and lower threshold
numeric vector of data
the percentile to seek, c(pc, 1-pc)
Nicholas Cooper njcooper@gmx.co.uk
pctile(rnorm(100000),.025) pctile(sample(100),.9)
Run the code above in your browser using DataLab