is_outside_quantiles: Function to test elements of a vector are within a given...

View source: R/is_outside_quantiles.R

is_outside_quantilesR Documentation

Function to test elements of a vector are within a given quantile.

Description

Function to test elements of a vector are within a given quantile.

Usage

is_outside_quantiles(x, probabilities = c(0.01, 0.99), type = 7, na.rm = TRUE)

Arguments

x

A numeric vector.

probabilities

A numeric vector with the length of 2 to use as the quantile limits.

type

Method to use to calculate the quantiles.

na.rm

Should NA values be omitted? The quantile function cannot be applied to vectors with NA values.

Value

Logical vector with length of x.

Author(s)

Stuart K. Grange

See Also

quantile, calculate_quantiles


skgrange/threadr documentation built on May 11, 2024, 12:16 p.m.