Factors
Estimated Completion Time
About 60–75 minutes, including practice exercises and knowledge quiz.
Welcome to the R Factors module. In this module, we’ll cover a particulalry useful class of data objects: factors. R uses factors to represent categorical data, so factors come up quite frequently in real-world data analysis (i.e., anytime your analysis involves a discrete grouping variable).
Learning Goals
After completing this module, you will be able to:
- Describe the characteristics of an R factor.
- Explain how factors differ from atomic vectors.
- Generate new factors in R.
- Access and modify factor levels.
- Describe important use-cases for factors, and explain why factors are the best choice in these situations.
Click the button below to get started.