
Mohammed R. answered 10/29/19
Tutor
New to Wyzant
Master's in Statistics and Applied Mathematics
Hi, I used to struggle with this a lot as well. What you want to do is,
df$letters <- factor(letters, levels = c("d", "c", "b", "a")).
Hope this helped :)