getArrivalTimes: getArrivalTimes

View source: R/getArrivalTimes.R

getArrivalTimesR 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)

babsim.hospital documentation built on May 30, 2022, 9:05 a.m.