Skip to content

Instantly share code, notes, and snippets.

@aurielfournier
Created July 8, 2016 19:53
Show Gist options
  • Save aurielfournier/7e618c1a8ec809259c935e1f5a89e5c2 to your computer and use it in GitHub Desktop.
Save aurielfournier/7e618c1a8ec809259c935e1f5a89e5c2 to your computer and use it in GitHub Desktop.
a <- data.frame(firstcolumn = seq(1:10), secondcolumn=rep(c("somestuffhere","someotherstuff"), 5))
a$secondcolumn <- ordered(a$secondcolumn, levels=c("somestuffhere", "someotherstuff"), labels=c("somestuff \nhere", "someother \nstuff"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment