get_simulated_data_as_list: get_simulated_data_as_list

View source: R/example-data-simulation.R

get_simulated_data_as_listR Documentation

get_simulated_data_as_list

Description

get_simulated_data_as_list

Usage

get_simulated_data_as_list(
  npat = 10000,
  start = as.POSIXct("2019-01-01 00:00:00"),
  end = as.POSIXct("2020-01-01 00:00:00")
)

Arguments

npat

number of patients to be simulated for ED and Inpatient datasets each. Some patients from the ED dataset will also be in the Inpatient data if they were admitted.

start

the start datetime of the simulation period.

end

the end datetime of the simulation period.

Value

list containing a dataframe of simulated ED data and the corresponsing Inpatient dataframe.


HorridTom/hospitalflow documentation built on June 14, 2022, noon