quartiles: *Tiles

Description Usage Arguments Value Functions See Also Examples

View source: R/tiles.R

Description

quartiles returns the quartiles, deciles return the deciles, and percentiles returns the percentiles with a resolution of 0.01.

Usage

1
2
3
4
5
quartiles(x, na.rm = FALSE, names = TRUE, type = 7, ...)

deciles(x, na.rm = FALSE, names = TRUE, type = 7, ...)

percentiles(x, na.rm = FALSE, names = TRUE, type = 7, ...)

Arguments

x

numeric vector whose sample quantiles are wanted, or an object of a class for which a method has been defined (see also ‘details’). NA and NaN values are not allowed in numeric vectors unless na.rm is TRUE.

na.rm

logical; if true, any NA and NaN's are removed from x before the quantiles are computed.

names

logical; if true, the result has a names attribute. Set to FALSE for speedup with many probs.

type

an integer between 1 and 9 selecting one of the nine quantile algorithms detailed below to be used.

...

further arguments passed to or from other methods.

Value

Returns the quartiles of x.

Functions

See Also

Examples

1
2
3
4
x <- rnorm(10)
quartiles(x)
deciles(x)
percentiles(x)

CGMossa/rbatteries documentation built on Oct. 30, 2019, 5:29 a.m.