ABC classification function
abc.RdFor your group variable,
abc()will categorize which groups make up what proportion of the totals according to the category_values that you have enteredThe function returns a segment object which prints out the execution steps and actions that it will take to categorize your data
Use calculate to return the results
Details
This function is helpful to understand which groups of make up what proportion of the cumulative contribution
If you do not provide a
.valuethen it will count the transactions per group, if you provide.valuethen it willsum()the.valueper groupThe function creates a
segmentobject, which pre-processes the data into its components
Examples
abc(sales,c(.1,.5,.7,.96,1),.value=margin)
#> Error: `abc()` expects a grouped tibble or dbi object. Please use `group_by()`
#> to pass a grouped objected