View source: R/get_age_groups.R
get_age_groups | R Documentation |
This bins ages into age groups by 5 years or 10 years. If bin_by = "old_db_yr", this will allow for old and new db age groups to be combined. This just matches with the old db AGE. For new db, NA are "Unknown"
get_age_groups(person_df, bin_by = "5_yr", age_column = "AGE")
person_df |
person df |
bin_by |
select either "5_yr", "10_yr", or "old_db_yr" |
age_column |
age column |
A new column called age_group_5yr, age_group_10yr or age_groups_both
## Not run: get_age_groups(person17, bin_by = "10_yr"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.