avgDeaths {DDM}R Documentation

if necessary divide deaths by intercensal interval

Description

ideally deaths is the average annual deaths in the intercensal period, but it is also common to give it as the sum. If this was the case, set deaths.summed to TRUE and we take care of it.

Usage

avgDeaths(codi, deaths.summed = FALSE)

Arguments

codi

the standard object as described in e.g. ggb().

deaths.summed

logical. If TRUE then deaths was specified as the sum over the intercensal period. Otherwise it was the mean.

Value

codi a new column, deathsAvg will be appended.


[Package DDM version 1.0-0 Index]