ntiles_labeled | R Documentation |
Creates a vector of human readable ntiles
ntiles_labeled(values, qty_ntiles, use_intervals = FALSE,
format_EN = FALSE, FUN, ...)
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' |
Ordered factor
ntiles_labeled(vec_values = mtcars$mpg, qty_ntiles = 4, FUN = format_currency, currency = "GBP")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.