Created
February 4, 2013 18:41
-
-
Save nassimhaddad/4708636 to your computer and use it in GitHub Desktop.
reorder factor levels. change the order of factors without changing their value
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
df$g <- factor(df$g, levels = letters[4:1]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment