SyntaxFix
Write A Post
Hire A Developer
Questions
Assuming your dataframe is mydf:
mydf$task <- factor(mydf$task, levels = c("up", "down", "left", "right", "front", "back"))