-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
special handling of national accounts cubes #14
Comments
Update: this problem also occurs in the following cube from the environmental accounts x <- STATcubeR::sc_table_custom(
db = 'str:database:deeehh02',
measures = "str:statfn:deeehh02:F-DATA:F-EEGJ:SUM",
dimensions = c(
"str:field:deeehh02:F-DATA:C-ENEETRAEG0-0",
"str:field:deeehh02:F-DATA:C-C57-0",
"str:field:deeehh02:F-DATA:C-ENEZEIT-0",
"str:field:deeehh02:F-DATA:C-ENEVERW-0"
)
) |
For now, it is probably best to use the following workaround
This will make sure that It would be useful if STATcubeR would do this fallback automatically in certain situations, but the danger here is that "real missings" could be replaced by sums in situations where this is not meaningful. |
national accounts cubes such as
sc_example("foreign_trade")
do not provide values for total codes.STATcubeR/inst/json_examples/foreign_trade.json
Line 2 in 8416f63
Therefore, they should be aggregated directly in
$tabulate()
because otherwise the result would be a table filled with NAs in all measure columns.In one of our internal projects, we currently use the condition
to determine wether a direct aggregation via
rowsum()
should be applied.The text was updated successfully, but these errors were encountered: