rot90 | R Documentation |
Rotates matrix counterclockwise k*90
degrees.
rot90(A, k=1)
A |
matrix to be rotated |
k |
numeric scalar specifying the number of times to rotate (1..4) |
Rotating 4 times (360 degrees) returns the original matrix unchanged.
Returns matrix corresponding to argument A
having been rotated
argument k
number of times.
P. Roebuck proebuck1701@gmail.com
fliplr
,
flipud
rot90(matrix(1:4, 2, 2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.