View source: R/rkiToBabsimData.R
rkiToBabsimData | R Documentation |
Transforms the freshly downloaded rki data into the babsim data frame. Also imputes mising dates as zero frequency in the data.
rkiToBabsimData(rki = babsim.hospital::rkidata)
rki |
data.frame of downloaded rki data before preprocessing |
a data.frame of aggregated data
Day
Date, format: '2020-01-01' '2020-01-02' '2020-01-03' '2020-01-04' ...
Infected
Infiziert: num 1 0 0 0 0 0 0 0 0 0 ...
Weiblich
Geschlecht weiblich: int 0 0 0 0 0 0 0 0 0 0 ...
Maennlich
Geschlecht maennlich: int 1 0 0 0 0 0 0 0 0 0 ...
GUnbekannt
Geschlecht unbekannt: int 0 0 0 0 0 0 0 0 0 0 ...
data <- rkiToBabsimData(rkidata[1:100, ]) plot(data$Day, data$Infected, type = "o") # max(data$Day) - min(data$Day)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.