Learn R Programming

babsim.hospital (version 11.5.14)

dataCovidBeds20200624: dataCovidBeds20200624

Description

A data set of COVID-19 cases with 99 obs. of 11 variables.

Usage

dataCovidBeds20200624

Arguments

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

Run this code
# NOT RUN {
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)
 
   
# }

Run the code above in your browser using DataLab