1

How do you create a factor in R named color with levels "red", "green", and "blue"?

Correct Answer: factor(color = c("red", "green", "blue"), levels = c("red", "green", "blue"))

Make the most of this question

This page focuses on one R Programming MCQs question from Programming. After checking the answer, return to the topic list to practice more or run a timed set.

R Programming MCQs MCQ: How do you create a factor in R named color with levels "red", "green", and "blue"? | Extra Education