Australian estimated resident population by age and date
aus_pop_qtr_age(
date = NULL,
age = NULL,
tbl = FALSE,
roll = TRUE,
roll.beyond = FALSE
)
A vector of dates. If NULL
, values for all dates are returned in a table. The dates need not be quarters, provided roll != FALSE
,
A vector of (integer) ages from 0 to 100 inclusive. If NULL
, all ages are returned.
Should a table be returned? If FALSE
, a vector is returned.
Should a rolling join be performed?
Should inputs be allowed to go beyond the limits of data (without a warning)?
This is passed to data.table
's join, so options other than TRUE
and FALSE
are available.
See ?data.table
.
A data.table
or vector
with values of the estimated resident population.
# NOT RUN {
aus_pop_qtr_age(date = as.Date("2016-01-01"), age = 42)
# }
Run the code above in your browser using DataLab