ABC classification function
abc.Rd
For 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
.value
then it will count the transactions per group, if you provide.value
then it willsum()
the.value
per groupThe function creates a
segment
object, 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