powered by
The angles of the points given by the values in the first and second column of a matrix seen from the origin are calculated in degrees.
calcAngles(x, dim = c(1, 2), clockwise = TRUE)
vector. The angles of each row point with the origin as reference.
A matrix.
Dimensions used for calculating angles.
Logical. Positive angles are clockwise with x axis as basis.
if (FALSE) { m <- matrix(rnorm(9), 3) calcAngles() }
Run the code above in your browser using DataLab