R4DS Ch. 15

fct_inorder()

{forcats}

reorder factor levels in the order that they first appear

levels()

{base}

view and change factor levels

unique()

{base}

return vector with duplicate elements removed

fct_recode()

{forcats}

change factor levels by hand

fct_rev()

{forcats}

reverse order of factor levels

parse_factor()

{readr}

parse a character vector to factors

factor()

{base}

encode vector as factor

fct_lump()

{forcats}

lump together factor levels into ‘other’

fct_infreq()

{forcats}

reorder factor levels in the order of most to least frequent

fct_collapse()

{forcats}

collapse factors into manually defined groups

fct_relevel()

{forcats}

reorder factor levels by hand

fct_reorder()

{forcats}

reorder factor levels by sorting along another variable

fct_reorder2()

{forcats}

reorder factor levels by sorting along another variable with two dimensions

The end!