Learn R Programming

rgr (version 1.1.15)

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.

See Also

ltdl.fix.df, gx.fractile

Examples

Run this code
# NOT RUN {
## 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) 
# }

Run the code above in your browser using DataLab