Unraveling R Data Types – The Factors – A gentle introduction
The factor data type is used to represent character data. This character data, however takes a small number of distinct values. Each distinct value is represented by a integer code, which is called as level of the factor variable.