pctile: Find data thresholds corresponding to percentiles

View source: R/NCmisc.R

pctileR Documentation

Find data thresholds corresponding to percentiles

Description

Finds the top and bottom bounds corresponding to percentile 'pc' of the data 'dat'.

Usage

pctile(dat, pc = 0.01)

Arguments

dat

numeric vector of data

pc

the percentile to seek, c(pc, 1-pc)

Value

returns the upper and lower threshold

Author(s)

Nicholas Cooper njcooper@gmx.co.uk

Examples

pctile(rnorm(100000),.025)
pctile(sample(100),.9)

NCmisc documentation built on Oct. 17, 2022, 5:09 p.m.