if (FALSE) {
# Example: age profile for Indonesia, 2020
data_idn <- pop_data_by_year(load_pop_data(), 2020) |>
pop_data_by_reg(0) # Indonesia
ageprof(data_idn)
# Example with log scale
ageprof(data_idn, log_scale = TRUE)
}
Run the code above in your browser using DataLab