Beginner
R
Q31 / 100
How do you create a factor variable from a character vector?
Correct! Well done.
Incorrect.
The correct answer is A) factor(x)
A
Correct Answer
factor(x)
Explanation
factor() converts a vector into a factor, which represents categorical data with a fixed set of levels.
Progress
31/100