Learn R Programming

planr (version 0.5.1)

month_to_weekx: Convert a Demand expressed in Monthly buckets into Weekly buckets

Description

Convert a Demand expressed in Monthly buckets into Weekly buckets

Usage

month_to_weekx(dataset, DFU, W1, W2, W3, W4, Period, Demand)

Value

a dataframe with the Demand expressed in weekly buckets for each item

Arguments

dataset

a dataframe with the demand in monthly bucket for each item

DFU

name of an item, a SKU, or a node like an item x location

W1

percentage of demand done during the first week

W2

percentage of demand done during the second week

W3

percentage of demand done during the third week

W4

percentage of demand done during the fourth week

Period

a monthly period of time that we want to convert into weekly buckets

Demand

the quantity of an item planned to be consumed in units for a given period

Examples

Run this code
month_to_week(dataset = demo_monthly_dmd, DFU, Period, Demand)

Run the code above in your browser using DataLab