Factors with forcats Cheat Sheet

May 31, 2019

Factors are R’s data structure for categorical data. The forcats package makes it easy to work with factors. This cheatsheet reminds you how to make factors, reorder their levels, recode their values, and more. Updated 2/19.

Previous Flipbook
Python with R and Reticulate Cheat Sheet
Python with R and Reticulate Cheat Sheet

The reticulate package provides a comprehensive set of tools for interoperability between Python and R.

Next Flipbook
Work with Strings Cheat Sheet
Work with Strings Cheat Sheet

The stringr package provides an easy to use toolkit for working with strings, i.e. character data, in R.