split_bins {creditmodel} | R Documentation |
split_bins
is for binning using breaks.
split_bins( dat, x, breaks = NULL, bins_no = TRUE, as_factor = FALSE, labels = NULL, use_NA = TRUE )
dat |
A data.frame with independent variables. |
x |
The name of an independent variable. |
breaks |
Breaks for binning. |
bins_no |
Number the generated bins. Default is TRUE. |
as_factor |
Whether to convert to factor type. |
labels |
Labels of bins. |
use_NA |
Whether to process NAs. |
A data.frame with Bined x.
bins = split_bins(dat = UCICreditCard, x = "PAY_AMT1", breaks = NULL, bins_no = TRUE)