powered by
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.
formatPopulation
getBreaks(colNames, breaks = NULL)
vector of ages
names from the population data set
the age breaks, i.e breaks =seq(0, 80, by= 10)
data('kentucky') ageBreaks = getBreaks(names(kentucky), breaks=c(seq(0, 80, by=10), Inf)) ageBreaks
Run the code above in your browser using DataLab