Once helper function I would use a lot would be a read_erp() function that uses read_abs() to download the tables in 3101.0 National, state and territory population that have age by sex by single year for individual states/Australia.
Would you be open to a patch?
Presumably it would look something like:
read_erp(
states = c("Australia", "New South Wales", "Victoria", "Queensland", "South Australia", "Western Australia", "Tasmania" "Northern Territory", "Australian Capital Territory"),
age_range = 0:100,
sex = c("Persons", "Males", "Females"),
path = Sys.getenv("R_READABS_PATH", unset = tempdir()),
show_progress_bars = TRUE,
check_local = FALSE,
retain_files = FALSE
)
Once helper function I would use a lot would be a read_erp() function that uses read_abs() to download the tables in 3101.0 National, state and territory population that have age by sex by single year for individual states/Australia.
Would you be open to a patch?
Presumably it would look something like: