The planr package is for Supply Chain Management.
The goal is to provide some functions to perform quickly some classic operations in the scope of Demand and Supply Planning or to run the S&OP (Sales & Operations Planning) process.
There are currently 3 groups of functions :
Calculation & Analysis of projected inventories : light_proj_inv() / proj_inv() / const_dmd()
Calculation of Replenishment Plan (also called DRP) : drp()
Breakdown of Monthly Demand into Weekly Buckets : month_to_week()
To learn how to use those functions : refer to the section Get Started.
To install the CRAN version:
To install the latest development version from GitHub:
This section introduces the different functions of the package planr through :
a simple demo on a few items
an application on a product portfolio
Then, in the 3rd section we can find some examples of shiny apps using this package.
The goal of the planr package is to provide some functions for the activity of Demand & Supply Planning and S&OP (Sales & Operations Planning) process.
A few functions to calculate projected inventories and coverages, and more :
The 1st, basic (light) function : light_proj_inv()
Allows to calculate quickly the projected inventories and coverages:
To use it :
The 2nd function : proj_inv()
Allows to calculate the projected inventories and coverages
Useful to filter the data later on and spot which SKU is below the safety stock or in an overstock situation.
To use it :
The 3rd function : const_dmd()
Allows to calculate the projected inventories and coverages, as well as the Constrained Demand, which is the Demand which can be delivered, considering the actual projected inventories.
Useful to provide to a customer (or a receiving entity) the actual Demand which can be fulfilled, and then to calculate the impact on their side.
For example if an Entity 1 supplies and Entity 2 : the Constrained Demand of the Entity 1 becomes the possible Supply Plan to the Entity 2. We then can calculate the expected projected inventories of the Entity 2.
Another usage can be to manage some Allocations : we capture in the initial Demand the full potential of Sales, and based on the projected inventories, we get the Constrained Demand.
To use it : here a demo
A function to calculate a Replenishment Plan (also called DRP : Distribution Requirement Planning).
The 4th function : drp()
Based on some parameters (safety stocks, frequency of supply, minimum order quantity) allows to calculate a Replenishment Plan for an entity, for example at a Distributor level, and Affiliate, a Regional Distribution Center,…
Also useful in the scope of the S&OP (Sales & Operations Planning) process, to calculate a theoretical, unconstrained, Replenishment Plan.
To use it :
The 5th function : month_to_week()
Allows to convert a Demand initially in Monthly buckets into Weekly buckets.
We often generate monthly sales forecasts, and want to express this quantity into weekly bucket, to use it later on for the calculation of weekly projected inventories or a DRP for example.
To use it : RPubs - Transformation of Monthly Demand into Weekly Demand
R Views: Using R in Inventory Management and Demand Forecasting
Posit / RStudio Data Science Meetup : Supply Chain Management
R Shiny app demo for projected inventories : example of shiny app using the planr package
Get Started : Demand and Supply Planning with R
DRP (Distribution Replenishment Planning) demo shiny app : Demo DRP app (shinyapps.io)
2 levels network demo shiny app : 2 Levels Network (shinyapps.io)
Portfolio Calculation of Projected Inventories : RPubs - Demo Calculation Projected Inventories