getBreaks: Age Breaks

getBreaksR Documentation

Age Breaks

Description

An internal function to return a list contains age breaks, ages in the population data set, sex in the population data set, and age sex groups will be used in the formatPopulation function.

Usage

getBreaks(colNames, breaks = NULL)

Arguments

colNames

names from the population data set

breaks

the age breaks, i.e breaks =seq(0, 80, by= 10)

Value

vector of ages

Examples

data('kentucky')
ageBreaks = getBreaks(names(kentucky), breaks=c(seq(0, 80, by=10), Inf))
ageBreaks

diseasemapping documentation built on Sept. 22, 2023, 1:07 a.m.