This lesson shows how R uses factors to represent categorical data. We start with a vector of values, like colors. Then we convert this vector to a factor, which assigns categories called levels. These levels are sorted alphabetically by default. The factor stores the original values but treats them as categories. This helps when analyzing data that has groups or categories instead of continuous numbers. The execution table traces each step: creating the vector, converting to factor, checking levels, and summarizing. The variable tracker shows how the vector and factor variables change. Key moments clarify why levels are sorted and that factors can store any data type as categories. The quiz tests understanding of levels, when factors store categories, and how new values affect levels.