Learn R Programming

DDM (version 1.0-0)

ggbMakeColumns: make the growth-adjusted quasi life table columns required by GGB method

Description

Called by ggbChooseAges() and ggbcoverageFromYear(). This simply modulates some code that would otherwise be repeated. Users probably don't need to call this function directly.

Usage

ggbMakeColumns(codi, minA = 15, maxA = 75, deaths.summed = FALSE)

Arguments

codi
a chunk of data (single sex, year, region, etc) with all columns required by ggb()
minA
the minimum of the age range searched. Default 15
maxA
the maximum of the age range searched. Default 75
deaths.summed
logical. is the deaths column given as the total per age in the intercensal period (TRUE). By default we assume FALSE, i.e. that the average annual was given.

Value

codi, with many columns added, most importantly $rightterm, $leftterm, and $exclude.