edu_group_sum {wcde} | R Documentation |
Education group sums
Description
Cleans epop
data, downloaded using the wcde()
function, for summations of population by 4, 6 or 8 education groups.
Usage
edu_group_sum(
d = NULL,
n = 4,
strip_totals = TRUE,
factor_convert = TRUE,
year_edu_start = 2020
)
Arguments
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. |
year_edu_start |
Year in which education splits are available for given groupings - in some versions past data is not available for some education groupings. Set to 2020 by default. |
Details
Strips the epop
data set to relevant rows for the n
education groups.
Value
A tibble with the data selected.
Examples
library(tidyverse)
past_epop %>%
filter(year == 2020) %>%
edu_group_sum()
[Package wcde version 0.0.7 Index]