Learn R Programming

climdex.pcic (version 1.1-11)

climdex.quantile: Climdex quantile function

Description

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

Usage

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.

Value

A vector of the quantiles in question.

Details

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

See Also

quantile

Examples

Run this code
# NOT RUN {
## Compute 10th, 50th, and 90th percentile of example data.
climdex.quantile(1:10, c(0.1, 0.5, 0.9))
# }

Run the code above in your browser using DataLab