datenguideR
datenguideR copied to clipboard
R wrapper for the datengui.de GraphQL API to easily access German regional statistics
dg_map() uses 'sf'
``` library(datenguideR) dg_call(region_id = "11", year = 2017, stat_name = "AI0506") # New names: # * message -> message...1 # * `` -> ...4 # * `` -> ...5 #...
Would be nice to add a parameter to the function to automatically download population data for the chosen regions for quick and easy per capita stats.
Currently, `nuts_nr` requires numeric values, whereas e.g. `lau_nr` requires strings as input.
There are errors in regions.csv/`dg_regions` with respect to the AGS/`id`s of *Gemeinden* in *Gemeindeverbänden* in Lower Saxony and Rhineland-Palatinate if I'm not entirely mistaken. *Regionaldatenbank Deutschland* used to contain data...
`remotes::install_github("CorrelAid/datenguideR", upgrade = TRUE, dependencies = TRUE)`
This retrieves the `dg_regions` directly from data.genesapi.org (i.e. https://data.genesapi.org/regionalstatistik/names.json). This ought to fix #18. It is related to #24. In the long term, i.e. once genesapi supports bildungsdatenbank and ldbnrw,...
Get dg_descriptions from new source: https://data.genesapi.org/info.json
It would be useful to have official NUTS_ids - don't know if they're available in the API and we haven't accessed them yet or if they are not. They would...
These two labels appear to be the same. WOHN01 | Apartments WOHN02 | Apartments