Skip to content

Instantly share code, notes, and snippets.

@jonesor
Created July 16, 2014 22:40
Show Gist options
  • Save jonesor/1cb7178db13ee4f002d5 to your computer and use it in GitHub Desktop.
Save jonesor/1cb7178db13ee4f002d5 to your computer and use it in GitHub Desktop.
Rotate a matrix through 90 degrees clockwise
m = (t(m[nrow(m):1,]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment