calcAngles: Calculate angles for points in first two columns.

Description Usage Arguments Value Author(s) Examples

Description

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.

Usage

1
calcAngles(x, dim=c(1, 2), clockwise=TRUE)

Arguments

x

A matrix.

dim

Dimensions used for calculating angles.

clockwise

Logical. Positive angles are clockwise with x axis as basis.

Value

vector. The angles of each row point with the origin as reference.

Author(s)

Mark Heckmann

Examples

1
2
3
4
5
## Not run: 

calcAngles(matrix(rnorm(9), 3))

## End(Not run)

OpenRepGrid documentation built on May 2, 2019, 4:54 p.m.