Question:
What is a factor variable and how can you create one in R?
Author: Zhasmina Yanislavova TachevaAnswer:
A factor variable is a variable that can take on a limited number of discrete values, i.e. a categorical variable. mtcars$gear_factor<-as.factor(mtcars$gear)
0 / 5 Â (0 ratings)
1 answer(s) in total