View source: R/utils-get-age-prop.R
get_age_prop | R Documentation |
Create the age prop and the age itself for the ranking of age proportions
get_age_prop(vec, ranking = 1)
vec |
A vector of age proportions |
ranking |
1 = max, 2 = second highest, etc. |
Think of the question "Which is the second-highest number in this vector and what is its index in the vector?" This function returns a vector of those two numbers.
The age proportion and the age itself for the ranking of age proportion
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.