calculate_quantiles: Function to calculate quantiles for a numeric vector.

View source: R/calculate_quantiles.R

calculate_quantilesR Documentation

Function to calculate quantiles for a numeric vector.

Description

Function to calculate quantiles for a numeric vector.

Usage

calculate_quantiles(
  x,
  probabilities = c(0.025, 0.975),
  type = 7,
  keep_probabilities = FALSE,
  na.rm = TRUE
)

Arguments

x

A numeric vector.

probabilities

A numeric vector with the length of two representing probabilities of the quantiles. These values will always be less than 1.

type

Method to use to calculate the quantiles.

keep_probabilities

Should the probabilities vector be kept? If TRUE, the return will contain a nested column.

na.rm

Should missing values be removed for calculation? The default is TRUE because missing values cannot be used for quantile calculations.

Value

Tibble.

Author(s)

Stuart K. Grange

See Also

quantile, calculate_ci, calculate_range


skgrange/threadr documentation built on April 15, 2024, 9:35 p.m.