pany: Compute the sample value for a specific percentile, p.

View source: R/btools_stats.r

panyR Documentation

Compute the sample value for a specific percentile, p.

Description

Compute the sample value for a specific percentile, p.

Usage

pany(x, p, na.rm = FALSE)

Arguments

x

a numeric vector containing the values whose p-th percentile is to be computed.

p

the percentile.

na.rm

a logical value indicating whether NA values should be stripped before the computation proceeds.

Value

numeric

Examples

pany(1:100, .33)
pany(c(1:10, NA, 11:100), .33, na.rm=TRUE)

donboyd5/btools documentation built on Jan. 7, 2023, 10:47 p.m.