The goal of qbgbaExtraData is to provide several datasets that can be used in conjunction with the data from the “Qualitaetsberichte der Krankenhaeuser”, which are puplished by the “Gemeinsamer Bundesausschuss” (GBA) on a yearly basis. To serve this purpose, a tiny excerpt of these is also included into this package, see AllHospitals
.
You can install qbgbaExtraData from Gitlab with:
devtools::install_gitlab("klinik-db/qbgbaExtraData")
This is a basic example which shows you how to solve a common problem:
library(qbgbaExtraData)
suppressPackageStartupMessages(library(dplyr))
data(populationGermany)
populationGermany %>%
group_by(year) %>%
summarize(Population = sum(count))
#> # A tibble: 6 x 2
#> year Population
#> <chr> <int>
#> 1 2015 82175684
#> 2 2016 82521653
#> 3 2017 82792351
#> 4 2018 83019213
#> 5 2019 83166711
#> 6 2020 83155031