approx_demographics: Interpolate demographic data

Description Usage Arguments Value

View source: R/approx_demographics.R

Description

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.

Usage

1
approx_demographics(demo, first_day, last_day, by = "year")

Arguments

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

Value

A data frame with dates and population estimates.


excessmort documentation built on Oct. 11, 2021, 9:06 a.m.