16 Factors
Learning objectives:
- Create
factor()
variables. - Explore the General Social Survey dataset via
forcats::gss_cat
. - Reorder factor levels.
forcats::fct_reorder()
forcats::fct_relevel()
forcats::fct_reorder2()
forcats::fct_infreq()
forcats::fct_rev()
- Modify factor levels.
forcats::fct_recode()
forcats::fct_collapse()
forcats::fct_lump()