Description Usage Arguments Value
View source: R/approx_demographics.R
Interpolate yearly population estimates so that a population estimate is provided for each day of the year. The function 'approx' is used with 'rule = 2' for extrapolation.
1 | approx_demographics(demo, first_day, last_day, by = "year")
|
demo |
A data frame with the yearly population estimates |
first_day |
First day to interpolate |
last_day |
Last day to interpolate. |
by |
Vector of column names to group by, for example different demographic strata |
A data frame with dates and population estimates.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.