bin_width_labeled: Creates a vector of human readable bins based on width

View source: R/string_tools.R

bin_width_labeledR Documentation

Creates a vector of human readable bins based on width

Description

Creates a vector of human readable bins based on width

Usage

bin_width_labeled(values, width, boundary = 0, FUN, ...)

Arguments

values

The vector/column of values you want to 'ntile'

width

The width of the bins

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

bin_width_labeled(values = mtcars$mpg, qty_ntiles = 4, FUN = format_currency, currency = "GBP")

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