cut_at: Cut a vector at breakpoints defined by quantiles

View source: R/cut_functions.R

cut_atR Documentation

Cut a vector at breakpoints defined by quantiles

Description

Cut a vector at breakpoints defined by quantiles

Usage

cut_at(x, at, ...)

Arguments

x

A numeric vector.

at

The quantiles at which to break x (defined either in the range 0-100 or 0-1).

...

other arguments passed to cut

Value

An ordered factor, dividing x at the quantiles given by at. Labels are of the form (e.g.) "0-25%", "25-33%"...

See Also

cut_into_n

Examples

cut_at(100:1, c(25, 75))

bbcuffer/rcutils documentation built on Nov. 10, 2023, 12:08 p.m.