powered by
Performs a rotation in the plane
rotate2(x, theta = pi)
Returns a matrix of the same dimension as x
x
Matrix to be rotated (2 times n)
Rotation in radians
Klaus K. Holst
rotate2(cbind(c(1,2),c(2,1)))
Run the code above in your browser using DataLab