Description Usage Arguments Details Value Examples

View source: R/edu_group_sum.R

Cleans `epop`

data, downloaded using the `wcde()`

function, for summations of population by 4, 6 or 8 education groups.

1 | ```
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.

1 2 3 4 5 | ```
library(tidyverse)
past_epop %>%
filter(year == 2020) %>%
mutate(scenario = 2) %>%
edu_group_sum()
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.