R4DS Ch. 15

fct_reorder()

{forcats}

reorder factor levels by sorting along another variable

unique()

{base}

return vector with duplicate elements removed

fct_rev()

{forcats}

reverse order of factor levels

fct_lump()

{forcats}

lump together factor levels into ‘other’

fct_reorder2()

{forcats}

reorder factor levels by sorting along another variable with two dimensions

fct_relevel()

{forcats}

reorder factor levels by hand

factor()

{base}

encode vector as factor

fct_collapse()

{forcats}

collapse factors into manually defined groups

fct_infreq()

{forcats}

reorder factor levels in the order of most to least frequent

levels()

{base}

view and change factor levels

fct_inorder()

{forcats}

reorder factor levels in the order that they first appear

parse_factor()

{readr}

parse a character vector to factors

fct_recode()

{forcats}

change factor levels by hand

The end!