create_batches: Split a volume into dated batches.

Description Usage Arguments Value

View source: R/create_batches.R

Description

Split a volume into dated batches.

Usage

1
2
3
4
5
6
7
8
create_batches(
  object = "lot",
  quantity = 1200,
  max_batch_nbr = 20,
  min_batch_size = 20,
  start_date = Sys.Date(),
  end_date = Sys.Date() + 20
)

Arguments

object

Character. component of the final label identifying the batch.

quantity

Integer. Number of units to be divided in batches.

max_batch_nbr

Integer. Number of batches.

min_batch_size

Integer. Minimum number of units in a batch.

start_date

Date. Beginning of the period.

end_date

Date. End of the period.

Value

A dataframe with date, object and quantity of each batch.


NicolasJBM/simulR documentation built on Feb. 15, 2021, 9:38 a.m.