R4DS Ch. 15

unique()

{base}

return vector with duplicate elements removed

parse_factor()

{readr}

parse a character vector to factors

fct_inorder()

{forcats}

reorder factor levels in the order that they first appear

factor()

{base}

encode vector as factor

fct_infreq()

{forcats}

reorder factor levels in the order of most to least frequent

fct_reorder()

{forcats}

reorder factor levels by sorting along another variable

fct_collapse()

{forcats}

collapse factors into manually defined groups

fct_rev()

{forcats}

reverse order of factor levels

fct_reorder2()

{forcats}

reorder factor levels by sorting along another variable with two dimensions

fct_relevel()

{forcats}

reorder factor levels by hand

levels()

{base}

view and change factor levels

fct_recode()

{forcats}

change factor levels by hand

fct_lump()

{forcats}

lump together factor levels into ‘other’

The end!