calcAngles: Calculate angles for points in first two columns.

Description Usage Arguments Value Author(s) Examples

View source: R/calc.r

Description

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)

markheckmann/OpenRepGrid documentation built on April 30, 2021, 2:33 a.m.