Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (13.7%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

Basic Info
  • Host: GitHub
  • Owner: nguyennico
  • License: other
  • Language: R
  • Default Branch: main
  • Size: 1.29 MB
Statistics
  • Stars: 44
  • Watchers: 3
  • Forks: 8
  • Open Issues: 0
  • Releases: 0
Created over 3 years ago · Last pushed over 1 year ago
Metadata Files
Readme License

README.Rmd

---
output: github_document
always_allow_html: true
---



[![CRAN Status](https://www.r-pkg.org/badges/version/planr)](https://cran.r-project.org/package=planr) [![CRAN Downloads](https://cranlogs.r-pkg.org/badges/grand-total/planr)](https://cranlogs.r-pkg.org/badges/grand-total/planr) [![CRAN download](https://cranlogs.r-pkg.org/badges/planr)](https://cran.r-project.org/package=planr)





```{r, include = FALSE}
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)
```

# planr 

The goal of planr is to provide some functions for the activity of Demand & Supply Planning and S&OP process.

[**A few functions to calculate projected inventories and coverages, and more :**]{style="color:green"}

-   The 1st, basic (light) function : [**light_proj_inv()**]{style="color:blue"}

Allows to **calculate quickly the projected inventories and coverages**: for a SKU, a group of SKUs, or at an aggregated level (a Product Family for example).

-   The 2nd function : [**proj_inv()**]{style="color:blue"}

Allows to calculate the projected inventories and coverages, and also to **analyze the projected values based on some parameters (targeted stocks min & Max)**.

Useful to filter the data later on and spot which SKU is below the safety stock or in an overstock situation. We easily can identify when it will be in this situation, and how much, compared to those thresholds.

-   The 3rd function : [**const_dmd()**]{style="color:blue"}

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.

[**A function to calculate a Replenishment Plan (also called DRP : Distribution Requirement Planning)**]{style="color:green"}

-   The 4th function : [**drp()**]{style="color:blue"}

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**.

[**A function to convert the Demand from Monthly to Weekly buckets**]{style="color:green"}

-   The 5th function : [**month_to_week()**]{style="color:blue"}

Allows to **convert a Demand initially in Monthly buckets into Weekly buckets**.

By default, it assumes that the Demand is evenly distributed for each week (i.e. 25% of the Demand for each week of the month).

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.

## Installation

To install the CRAN version:

```{r}
#install.packages("planr")
library(planr)

```

To install the latest development version from GitHub:

```{r, eval = FALSE}
library(devtools)
#install_github("nguyennico/planr")

library(planr)
```

## How to use

Please refer to the sections:

-   Get Started

-   See some examples of applications

## Links

-   R Views: [Using R in Inventory Management and Demand Forecasting](https://rviews.rstudio.com/2022/10/20/projected-inventory-calculations-using-r-1/)

-   Posit / RStudio Data Science Meetup : [Supply Chain Management](https://www.youtube.com/watch?v=rzs6aSr4XoU)

-   R Shiny app demo for projected inventories : [example of shiny app using the planr package](https://niconguyen.shinyapps.io/Projected_Inventories/)

-   ASCM : [S&OP and the Digital Supply Chain, using R & Python](https://www.ascm.org/ascm-insights/sop-and-the-digital-supply-chain/)

-   Get Started : [Demand and Supply Planning with R](https://rpubs.com/nikonguyen/972907)

-   DRP (Distribution Replenishment Planning) demo shiny app : [Demo DRP app (shinyapps.io)](https://niconguyen.shinyapps.io/DRP_Simulation_app/)

-   2 levels network demo shiny app : [2 Levels Network (shinyapps.io)](https://niconguyen.shinyapps.io/Two_Levels_Network/)

-   Portfolio Calculation of Projected Inventories : [RPubs - Demo Calculation Projected Inventories](https://rpubs.com/nikonguyen/projected_inventories_demo)

Owner

  • Login: nguyennico
  • Kind: user

GitHub Events

Total
  • Watch event: 13
  • Push event: 6
  • Fork event: 1
Last Year
  • Watch event: 13
  • Push event: 6
  • Fork event: 1

Packages

  • Total packages: 1
  • Total downloads:
    • cran 336 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 8
  • Total maintainers: 1
cran.r-project.org: planr

Tools for Supply Chain Management, Demand and Supply Planning

  • Versions: 8
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 336 Last month
Rankings
Dependent packages count: 28.4%
Dependent repos count: 37.0%
Average: 51.1%
Downloads: 88.0%
Maintainers (1)
Last synced: 10 months ago

Dependencies

DESCRIPTION cran
  • R >= 2.10 depends
  • RcppRoll * imports
  • dplyr * imports
  • magrittr * imports
  • knitr * suggests
  • rmarkdown * suggests
docs/articles/my-vignette_files/core-js-2.5.3/package.json npm
  • @babel/cli ^7.7.7 development
  • @babel/core ^7.7.7 development
  • @babel/plugin-proposal-nullish-coalescing-operator ^7.7.4 development
  • @babel/plugin-proposal-optional-catch-binding ^7.7.4 development
  • @babel/plugin-proposal-optional-chaining ^7.7.5 development
  • @babel/plugin-transform-arrow-functions ^7.7.4 development
  • @babel/plugin-transform-block-scoped-functions ^7.7.4 development
  • @babel/plugin-transform-block-scoping ^7.7.4 development
  • @babel/plugin-transform-classes ^7.7.4 development
  • @babel/plugin-transform-computed-properties ^7.7.4 development
  • @babel/plugin-transform-destructuring ^7.7.4 development
  • @babel/plugin-transform-exponentiation-operator ^7.7.4 development
  • @babel/plugin-transform-literals ^7.7.4 development
  • @babel/plugin-transform-member-expression-literals ^7.7.4 development
  • @babel/plugin-transform-parameters ^7.7.7 development
  • @babel/plugin-transform-property-literals ^7.7.4 development
  • @babel/plugin-transform-shorthand-properties ^7.7.4 development
  • @babel/plugin-transform-spread ^7.7.4 development
  • @babel/plugin-transform-template-literals ^7.7.4 development
  • babel-loader ^8.0.6 development
  • babel-plugin-transform-es2015-modules-simple-commonjs ~0.3.0 development
  • babel-plugin-transform-for-of-as-array ^1.1.1 development
  • es-observable git+https://github.com/tc39/proposal-observable.git#bf4d87144b6189e793593868e3c022eb51a7d292 development
  • eslint ^6.8.0 development
  • eslint-import-resolver-webpack ^0.12.0 development
  • eslint-plugin-import ^2.19.1 development
  • eslint-plugin-node ^10.0.0 development
  • eslint-plugin-optimize-regex ^1.1.7 development
  • eslint-plugin-qunit ^4.0.0 development
  • eslint-plugin-sonarjs ^0.5.0 development
  • eslint-plugin-unicorn ^15.0.0 development
  • grunt ^1.0.4 development
  • grunt-cli ^1.3.2 development
  • grunt-contrib-clean ^2.0.0 development
  • grunt-contrib-copy ^1.0.0 development
  • grunt-contrib-uglify ^4.0.1 development
  • grunt-karma ^3.0.2 development
  • grunt-webpack ^3.1.3 development
  • karma ^4.4.1 development
  • karma-chrome-launcher ^3.1.0 development
  • karma-phantomjs-launcher ~1.0.4 development
  • karma-qunit ^4.0.0 development
  • lerna ^3.19.0 development
  • moon-unit ^0.2.2 development
  • phantomjs-prebuilt ~2.1.16 development
  • promises-aplus-tests ^2.1.2 development
  • puppeteer ~2.0.0 development
  • qunit ~2.9.3 development
  • webpack ^4.41.4 development