Learn R Programming

inventorize (version 1.1.1)

abc_dynamic: abc_dynamic

Description

Identyfing ABC category based on the pareto rule. the function can have flexibility in defining the A,B thresholds. can be done on multiple splits for example countries or stores

Usage

abc_dynamic(
  product,
  key_to_split = F,
  first_attribute,
  second_attribute = F,
  A = F,
  B = F
)

Arguments

product,

Vector that contains the product name .

key_to_split,

logical and by default is False, otherwise a column that has a splitting dimension, for example ; stores or cities

first_attribute

, attribute to do the ABC analysis on, for example sales quantity

second_attribute

, attribute to do the ABC analysis on .for example profit, the default is FALSE

A

, changing the default threshold for A category which is 0.8, the default is FALSE

B

, changing the default threshold for B category which is 0.95, the default is FALSE

Value

a dataframe that contains ABC categories.

Examples

Run this code
# NOT RUN {
abc_dynamic(c(1:1000), rep(seq(1:10),100), runif(1000,4,10000),rnorm(1000,100,20))
# }

Run the code above in your browser using DataLab