Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

gx.quantiles

Estimate the Common Quantiles


Description

Estimates and displays the common quantiles. i.e. quartiles, quintiles, deciles, and for upper and lower extreme percentiles, for a numeric variable. For any other quantile use function gx.quantile.

Usage

gx.quantiles(x, xname = deparse(substitute(x)))

Arguments

x

the data set for which the quantiles are to be estimated.

xname

by default the character string for x is used for the display. An alternate title can be displayed with xname = "text string", see Example.

Note

Any less than detection limit values represented by negative values, or zeros or other numeric codes representing blanks in the data, must be removed prior to executing this function, see ltdl.fix.df.

Any NAs in the data vector are removed prior to estimation.

Author(s)

Robert G. Garrett

See Also

Examples

## Make test data available
data(kola.o)
attach(kola.o)

## Estimate the common quantiles
gx.quantiles(As, "As (mg/kg) in Kola O-horizon soil")

## Clean-up and detach test data
detach(kola.o)

rgr

Applied Geochemistry EDA

v1.1.15
GPL-2
Authors
Robert G. Garrett
Initial release
2018-03-05

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.