calcAngles | R Documentation |
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)
x |
A matrix. |
dim |
Dimensions used for calculating angles. |
clockwise |
Logical. Positive angles are clockwise with x axis as basis. |
vector. The angles of each row point with the origin as reference.
## Not run:
calcAngles(matrix(rnorm(9), 3))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.