View source: R/updateRkidataFile.R
updateRkidataFile | R Documentation |
Update rkidata. Download RKI data from the RKI Server.
updateRkidataFile(fileName = NULL, overwrite = TRUE)
fileName |
RKI Filename, e.g.,
|
overwrite |
logical Overwrite existing file. Default |
Because the downloaded RKI data include data from January 2020
(first COVID-19 wave in Germany) until
today (or the day before today), the original data are stored as rkidataFull
.
babsim.hospital
simulations require data starting from September 2020 (second
COVID-19 wave in Germany). Therefore, a limited data set starting from Sep 1st
is stored as rkidata
in the babsim.hospital
package.
Furthermore, because no nowcasting is implemented in the current version of the
babsim.hospital
simulator, the Meldedatum
information will be used
instead of the the Refdatum
information: the corresponding columns in
rkidata
are renamed, because all functions in babsim.hospital
use the Refdatum
information.
Creates two *.rda
files in the folder data
:
1. babsim.hospital::rkidata
and
2. babsim.hospital::rkidataFull
.
Both data frames contain the following 18 variables
FID
int 40613780 40613781 40613782 40613783 40613784 40613785 40613786 40613787 40613788 40613789 ...
IdBundesland
1 1 1 1 1 1 1 1 1 1 ...
Bundesland
chr 'Schleswig-Holstein' 'Schleswig-Holstein' 'Schleswig-Holstein' 'Schleswig-Holstein' ...
Landkreis
chr 'SK Flensburg' 'SK Flensburg' 'SK Flensburg' 'SK Flensburg' ...
Altersgruppe
chr 'A00-A04' 'A00-A04' 'A00-A04' 'A05-A14' ...
Geschlecht
chr 'M' 'W' 'W' 'M' ...
AnzahlFall
int 1 1 1 1 1 1 1 1 1 1 ...
AnzahlTodesfall
...
Meldedatum
chr '2020/09/30 00:00:00' '2020/08/24 00:00:00' '2020/09/26 00:00:00' '2020/09/25 00:00:00' ...
IdLandkreis
int 1001 1001 1001 1001 1001 1001 1001 1001 1001 1001 ...
Datenstand
'04.10.2020, 00:00 Uhr' '04.10.2020, 00:00 Uhr' '04.10.2020, 00:00 Uhr' '04.10.2020, 00:00 Uhr' ...
NeuerFall
int 0 0 0 0 0 0 0 0 0 0 ...
NeuerTodesfall
int -9 -9 -9 -9 -9 -9 -9 -9 -9 -9 ...
Refdatum
chr '2020/09/30 00:00:00' '2020/08/24 00:00:00' '2020/09/26 00:00:00' '2020/09/21 00:00:00' ...
NeuGenesen
int -9 0 -9 -9 -9 -9 0 -9 -9 0 ...
AnzahlGenesen
int 0 1 0 0 0 0 1 0 0 1 ...
IstErkrankungsbeginn
int 0 0 0 1 1 0 0 1 0 1 ...
Altergruppe2
chr 'Nicht übermittelt' 'Nicht übermittelt' 'Nicht übermittelt' 'Nicht übermittelt' ...
True if new data was downloaded, otherwise false
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.