MattCowgill / readabs

Download and tidy time series data from the Australian Bureau of Statistics in R
https://mattcowgill.github.io/readabs/
Other
102 stars 22 forks source link

Add a read_erp() #260

Open fmarkham opened 1 day ago

fmarkham commented 1 day ago

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
)
MattCowgill commented 4 hours ago

@fmarkham Absolutely, yes please!