November 2018
Beginner to intermediate
354 pages
6h 59m
English
We now see that the class is a factor, as we can see in the following output:
[1] "factor"
Now, we can also look at the internal structure of this vector x, using str() as follows:
str(x)
We now see that it converts 1, 2, and 3 to factors:
[1] Factor w/ 3 levels "1", "2", "3": 1 2 3
Read now
Unlock full access