Learn R Programming

nexus (version 0.3.0)

quantile: Sample Quantiles

Description

Sample Quantiles

Usage

# S4 method for CompositionMatrix
quantile(x, ..., probs = seq(0, 1, 0.25), na.rm = FALSE, names = TRUE)

Value

A numeric matrix.

Arguments

x

A CompositionMatrix object.

...

Currently not used.

probs

A numeric vector of probabilities with values in \([0,1]\).

na.rm

A logical scalar: should missing values be removed?

names

A logical scalar: should results be named?

Author

N. Frerebeau

References

Filzmoser, P., Hron, K. & Reimann, C. (2009). Univariate Statistical Analysis of Environmental (Compositional) Data: Problems and Possibilities. Science of The Total Environment, 407(23): 6100-6108. tools:::Rd_expr_doi("10.1016/j.scitotenv.2009.08.008").

See Also

Other statistics: aggregate(), condense(), covariance(), dist, mahalanobis(), margin(), mean(), pip(), scale(), variance(), variance_total(), variation()

Examples

Run this code
## Data from Aitchison 1986
data("hongite")

## Coerce to compositional data
coda <- as_composition(hongite)

## Mean
mean(coda)

## Quantile
quantile(coda)

Run the code above in your browser using DataLab