dataCovidBeds20200624 {babsim.hospital} | R Documentation |
dataCovidBeds20200624
Description
A data set of COVID-19 cases with 99 obs. of 11 variables.
Usage
dataCovidBeds20200624
Format
A data frame with 32239 rows and 6 columns:
- bed
int 2 2 3 3 3 3 3 3 4 4 ...
- intensiveBed
int 0 0 0 0 0 0 0 0 0 0 ...
- intensiveBedVentilation
int 0 0 0 0 0 0 0 0 0 0 ...
- Day
Date, format: '2020-03-03' '2020-03-04' '2020-03-05' '2020-03-06' ...
- Infected
num 5 0 0 0 0 0 0 7 2 5 ...
- Sick
num 5 5 5 5 5 5 5 12 14 19 ...
The variable obk$Sick
was generated from the Infected data as follows:
slide_dbl(obk$Infected, ~sum(.x), .before = (amntDaysSickness -1))
amntDaysSickness
was set to 20.
Examples
x <- dataCovidBeds20200624
# first look
str(x)
# plot
x$InfCum <- cumsum(x$Infected)
plot(x$Day, x$InfCum, type = "l", log = "y", ylim = c(1, 500))
lines(x$Day, x$Infected + 1e-6)
[Package babsim.hospital version 11.8.8 Index]