rbin_equal_length {rbin} | R Documentation |
Bin continuous data using the equal length binning method.
rbin_equal_length( data = NULL, response = NULL, predictor = NULL, bins = 10, include_na = TRUE ) ## S3 method for class 'rbin_equal_length' plot(x, print_plot = TRUE, ...)
data |
A |
response |
Response variable. |
predictor |
Predictor variable. |
bins |
Number of bins. |
include_na |
logical; if |
x |
An object of class |
print_plot |
logical; if |
... |
further arguments passed to or from other methods. |
A tibble
.
bins <- rbin_equal_length(mbank, y, age, 10) bins # plot plot(bins)