numeric_summary {tidybins} | R Documentation |
This function summarizes an arbitrary bin column, with respect to its original column. Can be used to summarize bins created from any package, or any arbitrary categorical column paired with a numeric column.
numeric_summary(mdb, original_col, bucket_col)
mdb |
a data frame |
original_col |
original numeric column |
bucket_col |
columns of bins |
a tibble
iris %>%
numeric_summary(original_col = Sepal.Length, bucket_col = Species)