Daniel Antal
Daniel Antal
input_flow_get() may be a misleading analyitcal function name. In Eurostat terms, you’re returning the intermediate-use (Quadrant I) block (optionally with the households column appended). I’d rename it and soft-deprecate the...
The empty_remove argument is a no-op due to variable shadowing; the cleaned table is computed but never used. Selecting rows up to "total" / "cpa_total" can return zero rows if...
- names_direct and col_n are computed but never used. - rounding never takes effect - confusing variable names -> should be cross-checked with Beutel's manual
``` test_that("airpol_get returns informative error messages", { # Fake pollutant should error expect_error( airpol_get(airpol = "FAKEPOLLUTANT", geo = "germany_1995", year = 1995), regexp = "not recognized" ) }) ```
leontief_inverse_create() has a bad example The function leontief_inverse_create() expects coefficients (values divided by column totals), not raw flows. If you give it raw flows, the “I – A” matrix isn’t...