Que: What is the meaning of the following R function?

x <- c(4, 5, 1, 2, 3, 3, 4, 4, 5, 6)
x <- as.factor(x)
a. x becomes a factor
b. x is a factor
c. x does not exist
d. x is not a vector
Answer: x becomes a factor

Leave a Comment