getBreaks | R Documentation |
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.
getBreaks(colNames, breaks = NULL)
colNames |
names from the population data set |
breaks |
the age breaks, i.e breaks =seq(0, 80, by= 10) |
vector of ages
data('kentucky')
ageBreaks = getBreaks(names(kentucky), breaks=c(seq(0, 80, by=10), Inf))
ageBreaks
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.