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
FIDint 40613780 40613781 40613782 40613783 40613784 40613785 40613786 40613787 40613788 40613789 ...
IdBundesland 1 1 1 1 1 1 1 1 1 1 ...
Bundeslandchr 'Schleswig-Holstein' 'Schleswig-Holstein' 'Schleswig-Holstein' 'Schleswig-Holstein' ...
Landkreischr 'SK Flensburg' 'SK Flensburg' 'SK Flensburg' 'SK Flensburg' ...
Altersgruppechr 'A00-A04' 'A00-A04' 'A00-A04' 'A05-A14' ...
Geschlechtchr 'M' 'W' 'W' 'M' ...
AnzahlFallint 1 1 1 1 1 1 1 1 1 1 ...
AnzahlTodesfall...
Meldedatumchr '2020/09/30 00:00:00' '2020/08/24 00:00:00' '2020/09/26 00:00:00' '2020/09/25 00:00:00' ...
IdLandkreisint 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' ...
NeuerFallint 0 0 0 0 0 0 0 0 0 0 ...
NeuerTodesfallint -9 -9 -9 -9 -9 -9 -9 -9 -9 -9 ...
Refdatumchr '2020/09/30 00:00:00' '2020/08/24 00:00:00' '2020/09/26 00:00:00' '2020/09/21 00:00:00' ...
NeuGenesenint -9 0 -9 -9 -9 -9 0 -9 -9 0 ...
AnzahlGenesenint 0 1 0 0 0 0 1 0 0 1 ...
IstErkrankungsbeginnint 0 0 0 1 1 0 0 1 0 1 ...
Altergruppe2chr '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.