quantile_breaks: Get a vector of quantile values from a vector

View source: R/quantile_breaks.R

quantile_breaksR Documentation

Get a vector of quantile values from a vector

Description

Get a vector of quantile values from a vector

Usage

quantile_breaks(value, prob, digits = 1)

Arguments

prob:

a sequence of probability values, ie c(0, 0.5, 1) or seq(0, 1, 0.25)

digits:

number of digits to round the quantiles to

Value

a vector of quantile values rounded to a specified number of digits

Examples

quantile_breaks(1:10, c(0,0.5,1), 2)

MCMaurer/MCMsBasics documentation built on July 5, 2024, 11:38 p.m.