Factor Levels (R)

The levels of a factor are its set of distinct categories. They define which values are valid, their order, and how the factor appears in tables, plots, and…