Learn R Programming

babsim.hospital (version 11.8.8)

getArrivalTimes: 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

Run this code
# NOT RUN {
x <- dataCovidBeds20200624
arrivalTimes <- getArrivalTimes(xDaily = x$Infected)
# For RKI data, use rkiToBabsimArrivals as follows:
arrivalTimes <- rkiToBabsimArrivals(rki = babsim.hospital::rkidata)
# }

Run the code above in your browser using DataLab