ff_acs_age | R Documentation |
This function filters ACS data for rows that include ages. It also has optional parameters to rebin age groups into custom age bins.
ff_acs_age(df, age_column, recode = F, recode_list = NULL)
df |
Dataframe of ACS data |
age_column |
Column name that contains age information |
recode |
Boolean value of whether to recode age bins |
recode_list |
A named list where name is old age bin and value is a string for the new age bin |
Dataframe that only contains the age rows
age_bins <- list(`16 to 26 year old` = "16 to 25", `75 and over` = "over 75") ff_acs_age(df, description, recode = T, recode_list = age_bins)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.