View source: R/gender_scripts/gender_age_band.R
gender_age_band
1 | gender_age_band(data, age_category = "20-39", plot_chart = TRUE)
|
data |
contains id, age_band and gender |
age_category |
categories to choose are 20-39; 40-59; 60+ |
plot_chart |
if plot_chart == TRUE gives as an output a pie chart of percentages of gender, if FALSE it gives me a table with counts and percentages of gender accross age band chosen |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.