collapse factors into manually defined groups

{forcats}

lump factor levels that appear fewer than a certain proportion of times

{forcats}

change factor levels by hand

{forcats}

lump all factor levels except the most frequent

{forcats}

reverse order of factor levels

{forcats}

reorder factor levels by hand

{forcats}

lump factor levels that appear fewer than a certain number of times

{forcats}

reorder factor levels by sorting along another variable

{forcats}

view and change factor levels

{base}

reorder factor levels in the order that they first appear

{forcats}

The end!