Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • babsim.hospital babsim.hospital
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 4
    • Issues 4
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • bartzbeielstein
  • babsim.hospitalbabsim.hospital
  • Issues
  • #37
Closed
Open
Issue created Nov 14, 2020 by bartzbeielstein@bartzOwner

rkidata cut-off date is not correct, because it is based on `Refdatum`

  • The following change should be implemented in the automated rkidata update procedure:

    • updateRkidataFile() should use Meldedatum and not Refdatum to select rkidata. Here is the correct code fragment:
rkidata <- rkidataFull[which(rkidataFull$Meldedatum >= as.Date("2020-09-01")), ]
names(rkidata) <- c("FID", "IdBundesland",   "Bundesland",     "Landkreis",
                      "Altersgruppe",   "Geschlecht",     "AnzahlFall",     
                      "AnzahlTodesfall", "Refdatum",     "IdLandkreis",  
                      "Datenstand",     "NeuerFall",      "NeuerTodesfall",
                      "Meldedatum",       "NeuGenesen",     "AnzahlGenesen",
                      "IstErkrankungsbeginn", "Altersgruppe2")
  usethis::use_data(name = rkidata, overwrite = overwrite)
  • To illustrate the difference, the wrong code is shown below:
rkidata <- rkidataFull[which(rkidataFull$Refdatum >= as.Date("2020-09-01")), ]
names(rkidata) <- c("FID", "IdBundesland",   "Bundesland",     "Landkreis",
                      "Altersgruppe",   "Geschlecht",     "AnzahlFall",     
                      "AnzahlTodesfall", "Refdatum",     "IdLandkreis",  
                      "Datenstand",     "NeuerFall",      "NeuerTodesfall",
                      "Meldedatum",       "NeuGenesen",     "AnzahlGenesen",
                      "IstErkrankungsbeginn", "Altersgruppe2")
 usethis::use_data(name = rkidata, overwrite = overwrite)
  • To check whether it is correct, you can perform the following test:
    • Correct output :-):
> min(babsim.hospital::rkidata$Refdatum)
[1] "2020/09/01 00:00:00"
  • False output (this is the current state :-( ):
> min(babsim.hospital::rkidata$Refdatum)
[1] "2020/03/10 00:00:00"
Edited Nov 14, 2020 by bartzbeielstein
Assignee
Assign to
Time tracking

Imprint