ordered: Methods for ordered factors

Description Usage Arguments

Description

Median and quantile methods for ordered factors.

Usage

1
2
3
4
5
6
## S3 method for class 'ordered'
median(x, na.rm = FALSE)

## S3 method for class 'ordered'
quantile(x, probs = seq(0, 1, 0.25), na.rm = FALSE,
  left = TRUE, names = TRUE, ...)

Arguments

x

An ordered factor

na.rm

logical. If true, any NA and NaN's are removed from x before computing.

probs

numeric vector of probabilities with values in [0,1]. (Values up to 2e-14 outside that range are accepted and moved to the nearby endpoint.)

left

logical. If left, then quantiles are calculated as P(X <= x), else P(X > x).

names

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

...

further arguments passed to or from other methods.


jrnold/marfx documentation built on May 20, 2019, 1:03 a.m.