ffbase (version 0.12.7)

quantile.ff: quantiles

Description

The function quantile produces quantiles corresponding to the given probabilities. The smallest observation corresponds to a probability of 0 and the largest to a probability of 1. Current implementation doesn't use the type parameter of quantile. For large ff vectors the difference between the types is (very) small. If x has been ffordered, quantile is fast, otherwise it is $n log(n)$.

Usage

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

Arguments

x

ff vector

probs

numeric vector of probabilities with values in [0,1].

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.

...

currently not used