powered by
split_bins is for binning using breaks.
split_bins
split_bins( dat, x, breaks = NULL, bins_no = TRUE, as_factor = FALSE, labels = NULL, use_NA = TRUE, char_free = FALSE )
A data.frame with independent variables.
The name of an independent variable.
Breaks for binning.
Number the generated bins. Default is TRUE.
Whether to convert to factor type.
Labels of bins.
Whether to process NAs.
Logical, if TRUE, characters are not splitted.
A data.frame with Bined x.
# NOT RUN { bins = split_bins(dat = UCICreditCard, x = "PAY_AMT1", breaks = NULL, bins_no = TRUE) # }
Run the code above in your browser using DataLab