Learn R Programming

NHSRwaitinglist (version 0.1.2)

sim_schedule: Generator a list of dates to schedule

Description

Generates a list if dates in a given range

Usage

sim_schedule(n_rows = 10, start_date = NULL, daily_capacity = 1)

Value

A vector of Date values representing scheduled procedure dates. The length of the vector is equal to n_rows, and the dates are spaced according to the specified daily_capacity.

Arguments

n_rows

Number of rows/patients to generate

start_date

Start date (needed to generate patient ages)

daily_capacity

Number of patients per day