Closed ungatoverde closed 2 months ago
I have fixed this bug in #300.
However, the solution was a bit more complicated than initially planned. Not only sex but other variables can contribute to have multiple nested tables: e.g. geo_id
, and all incertainties ending with _ci
. And not all variables are always present (depending on user entry data). To solve this, somekind of id was greated colapsing the values with _
. Not ideal because you cannnot know if the central estimates refer e.g. to erf or to bhd but at least some kind of indexing are more informative than the number before. Anyway, this is not super important because it only affects the lifetable approach and only when looking at the strcuture in the environment. When clicking directly on the tibble you just see rows (no numbers).
Issue imported from an improvement suggested by @luytax in #148
The names() function can be used. E.g:
names(output$detailed$interim$lifetable_with_pop_nest) <- c("Male population", "Female population", "Total population", "Total impact")
results in: