i

R Programming Complete Tutorial

Factor Functions

In this section, we will discuss the factor functions. If a variable is a factor, the is.factor() function will return TRUE for it. We can easily convert a character or integer variable into factor using as.factor() function.