Skip to content

Instantly share code, notes, and snippets.

@mwfrost
Created August 31, 2011 01:31
Show Gist options
  • Select an option

  • Save mwfrost/1182600 to your computer and use it in GitHub Desktop.

Select an option

Save mwfrost/1182600 to your computer and use it in GitHub Desktop.
reorder factor levels
x = factor(x,levels(x)[c(...reordered levels...)])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment