View source: R/edu_group_sum.R
edu_group_sum | R Documentation |
Cleans epop
data, downloaded using the wcde()
function, for summations of population by 4, 6 or 8 education groups.
edu_group_sum(d = NULL, n = 4, strip_totals = TRUE, factor_convert = TRUE)
d |
Data frame downloaded from the |
n |
Number of education groups (from 4, 6 or 8) |
strip_totals |
Remove total sums in |
factor_convert |
Convert columns that are character strings to factors, with levels based on order of appearance. |
Strips the epop
data set to relevant rows for the n
education groups.
A tibble with the data selected.
library(tidyverse) past_epop %>% filter(year == 2020) %>% edu_group_sum()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.