I have a mutated categorical variable to perform an ANOVA. It is a factor with 6 levels. I am trying to make those 6 levels be only 2 levels: "Low" and "High" or 1 and 2.
sleepdata_complete <- mutate(sleepdata_complete,
qualslp = as.factor(qualslp),
qualslp = fct_recode(qualslp,
"V Poor" = "1",
"Poor" = "2",
"Fair" = "3",
"Good" = "4",
"V Good" = "5",
"Excel" = "6"))
This is what I currently have. Is there any way to change this? thank you!