SEARCH
You are in browse mode. You must login to use MEMORY

   Log in to start


From course:

IST 387 Fall 2020

» Start this Course
(Practice similar questions for free)
Question:

What is a factor variable and how can you create one in R?

Author: Zhasmina Yanislavova Tacheva



Answer:

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