In this video you will learn:
- what a factor in R is
- what a categorical variable in statistics is
- what the differences between character vectors and factors are and
- how to create and subset a factor in R and finally,
- how to create contingency tables out of factors.
...
https://www.youtube.com/watch?v=1G1ND0iEAgA