Description Usage Arguments Value Author(s) Examples
Calculate angles for points in first two columns. The angles of the points given by the values in the first and second column of a matrix seen from the origin are calulated in degrees.
1 | 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.
Mark Heckmann
1 2 3 4 5 | ## 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.