theta0: Angle between a vector and the origin

Description Usage Arguments Value Examples

Description

Calculates the angle (in degrees) between a vector and the origin (1,0)

Usage

1
theta0(a)

Arguments

a

Vector

Value

Angle, in degrees

Examples

1
2
3
4
5
6
7
8
a <- c(1, 0)
theta0(a)

a <- c(-1, 0)
theta0(a)

a <- c(-1, -1)
theta0(a)

Swarchal/phenoDist documentation built on May 9, 2019, 3:25 p.m.