num_quantile: Locate numeric vector quantile(s)

Description Usage Arguments Examples

View source: R/locations.R

Description

num_quantile() is a wrapper for quantile() with different default values

Usage

1
num_quantile(x, probs = c(0, 1), na.rm = TRUE, names = FALSE, ...)

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.

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.)

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.

...

further arguments passed to or from other methods.

Examples

1
num_quantile(c(1, 2, 3, 4, NA), c(.2, .8))

drsimonj/numvert documentation built on May 29, 2019, 2:37 p.m.