Description Usage Arguments Value Author(s)
View source: R/getPopulationFractions.R
Gets population fractions for a given set of age ranges
1 | getPopulationFractions(ages, year = 2015, population)
|
ages |
Vector of ages. Each element represents the upper range of an age range. The lowest bound is presumed to be zero.
If the oldest age does not reach the end of the population range, an additional element is added to span the full range.
This function by default uses |
year |
Year to sample population from. Defaults to 2015. |
population |
Population data frame that contains age and population values. Defaults to 2015 US population. The two required columns of the data frame are AGE and TOT_POP. |
A vector population fractions that sums to 1
Matt Clay <clay.matt@gmail.com>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.