View source: R/rbin-equal-freq.R
rbin_equal_freq | R Documentation |
Bin continuous data using the equal frequency binning method.
rbin_equal_freq(data = NULL, response = NULL, predictor = NULL, bins = 10)
## S3 method for class 'rbin_equal_freq'
plot(x, print_plot = TRUE, ...)
data |
A |
response |
Response variable. |
predictor |
Predictor variable. |
bins |
Number of bins. |
x |
An object of class |
print_plot |
logical; if |
... |
further arguments passed to or from other methods. |
A tibble
.
bins <- rbin_equal_freq(mbank, y, age, 10)
bins
# plot
plot(bins)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.