p25: Compute the sample 25th percentile

View source: R/btools_stats.r

p25R Documentation

Compute the sample 25th percentile

Description

Compute the sample 25th percentile

Usage

p25(x, na.rm = FALSE)

Arguments

x

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

na.rm

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

Value

numeric

Examples

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

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