Introduction

  • Factors -> categorical variables: variables that have a fixed and known set of possible values.
  • Also useful when you want to display character vectors in a non-alphabetical order.
library(tidyverse)