ntiles_labeled: Creates a vector of human readable ntiles

View source: R/string_tools.R

ntiles_labeledR Documentation

Creates a vector of human readable ntiles

Description

Creates a vector of human readable ntiles

Usage

ntiles_labeled(values, qty_ntiles, use_intervals = FALSE,
  format_EN = FALSE, FUN, ...)

Arguments

qty_ntiles

The number of ntiles you want to have

use_intervals

Do you want the labels to contain the value intervals or the ntile naming?

format_EN

Determines whether the named ntiles are English or Dutch.

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

vec_values

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

Value

Ordered factor

Examples

ntiles_labeled(vec_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.