getArrivalTimes {babsim.hospital}R Documentation

getArrivalTimes

Description

Generate arrival times.

Usage

getArrivalTimes(xDaily)

Arguments

xDaily

Vector that contains the number of arrivals for each day.

Value

This function returns a data frame of arrival times with the following entries:

time (num)

name of the seized resource

@seealso rkiToBabsimArrivals

Examples

x <- dataCovidBeds20200624
arrivalTimes <- getArrivalTimes(xDaily = x$Infected)
# For RKI data, use rkiToBabsimArrivals as follows:
arrivalTimes <- rkiToBabsimArrivals(rki = babsim.hospital::rkidata)

[Package babsim.hospital version 11.8.4 Index]