Answers for "reorder factors in r"

R
0

reorder factors in r

data$x <- factor(data$x, 
                 levels = c("a", "b", "c"))
Posted by: Guest on January-21-2022

Browse Popular Code Answers by Language