label_intervals: Creates a vector of human readable bins

View source: R/string_tools.R

label_intervalsR Documentation

Creates a vector of human readable bins

Description

Creates a vector of human readable bins

Usage

label_intervals(values, intervals, FUN, ...)

Arguments

values

The original values

intervals

The created intervals

FUN

The function you want to use to apply formatting

...

The parameters you'd want to pass on to the formatting function supplied to FUN

Value

Ordered factor

Examples

label_intervals(vec_values = mtcars$mpg, intervals, FUN = format_currency, currency = "GBP")

mark-me/graydon.package documentation built on Nov. 14, 2023, 5:31 p.m.