getBreaks {diseasemapping}R Documentation

Age Breaks

Description

getBreaks will 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)

Examples

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

[Package diseasemapping version 0.4 Index]