Learn R Programming

lava (version 1.6.4)

rotate2: Performs a rotation in the plane

Description

Performs a rotation in the plane

Usage

rotate2(x, theta = pi)

Arguments

x

Matrix to be rotated (2 times n)

theta

Rotation in radians

Value

Returns a matrix of the same dimension as x

Examples

Run this code
# NOT RUN {
rotate2(cbind(c(1,2),c(2,1)))
# }

Run the code above in your browser using DataLab