climdex.quantile: Climdex quantile function

Description Usage Arguments Details Value See Also Examples

View source: R/climdex.r

Description

This function implements R's type=8 in a more efficient manner.

Usage

1
climdex.quantile(x, q = c(0, 0.25, 0.5, 0.75, 1))

Arguments

x

Data to compute quantiles on.

q

Quantiles to be computed.

Details

This is a reimplementation of R's type=8 created to improve the efficiency of this package.

Value

A vector of the quantiles in question.

See Also

quantile

Examples

1
2
## Compute 10th, 50th, and 90th percentile of example data.
climdex.quantile(1:10, c(0.1, 0.5, 0.9))

Example output

Loading required package: PCICt
[1] 1.366667 5.500000 9.633333

climdex.pcic documentation built on March 26, 2020, 7:17 p.m.