You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The tabular API returns subtotals but no (grand) totals when dimensions without specific values are specified (i.e. ?data=<id>:<attr>(<dim>)).
I think it would be preferable to always return grand totals (only per year, of course). If one does not want grand totals, one can specify the desired values, after all.
To illustrate, I am retrieving population data with a simple R function for better readability.
Here we get subtotals for nationality and gender, respectively, but no grand totals. Note that the subtotals are not tagged (e.g. “GESAMT”) which they probably should be. If we retrieve the data for gender or nationality independently from each other, we do not get totals either.
r("https://tabular.genesapi.org/?data=12411:BEVSTD(GES)&time=2017®ion=01001")
#> region_id year measure value X12411.BEVSTD.GES. statistic#> 1 01001 2017 BEVSTD 44086 GESM 12411#> 2 01001 2017 BEVSTD 44433 GESW 12411
r("https://tabular.genesapi.org/?data=12411:BEVSTD(NAT)&time=2017®ion=01001")
#> region_id year measure value X12411.BEVSTD.NAT. statistic#> 1 01001 2017 BEVSTD 11745 NATA 12411#> 2 01001 2017 BEVSTD 76774 NATD 12411
The text was updated successfully, but these errors were encountered:
The tabular API returns subtotals but no (grand) totals when dimensions without specific values are specified (i.e.
?data=<id>:<attr>(<dim>)
).I think it would be preferable to always return grand totals (only per year, of course). If one does not want grand totals, one can specify the desired values, after all.
To illustrate, I am retrieving population data with a simple R function for better readability.
Here we get subtotals for nationality and gender, respectively, but no grand totals. Note that the subtotals are not tagged (e.g. “GESAMT”) which they probably should be. If we retrieve the data for gender or nationality independently from each other, we do not get totals either.
The text was updated successfully, but these errors were encountered: