qcut: Bin a numeric vector by quantiles

View source: R/qcut.R

qcutR Documentation

Bin a numeric vector by quantiles

Description

Bin a numeric vector by quantiles

Usage

qcut(x, nbreaks, ...)

rangecut(x, nbreaks, ...)

Arguments

x

numeric vector

nbreaks

number of 'quantile' bins to return. defaults to 4

...

other arguments passed to cut

Value

quantile factor-vector the same size as x

Functions

  • rangecut: use bins that each span an equal portion of the range

Examples

qcut(runif(100), 10, ordered_result = TRUE)

stackcon/rngt documentation built on June 17, 2022, 5:29 p.m.