Bin a continous field into fewer values using variety of methods.
1 2 | ezr.add_bins(dataset, column, style = "equal", n_breaks = 10,
fixed_breaks = NULL, new_col_prefix = "bucket_", round_breaks = 0)
|
dataset |
dataset |
column |
column. It should be numerical |
style |
'fixed','equal','quantile','pretty', or 'percentile'. |
n_breaks |
number of breaks. Only matters if not fixed |
fixed_breaks |
the fixed breaks. Only applicable if style is 'fixed' |
new_col_prefix |
Default prefix is 'bucket_' |
round_breaks |
number of digits to round too |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.