direction: Calculate the direction of a vector based on its x and y...

View source: R/utils.R

directionR Documentation

Calculate the direction of a vector based on its x and y components.

Description

Calculate the direction of a vector based on its x and y components.

Usage

direction(x, y)

Arguments

x

horizontal component (numeric vector)

y

vertical component (numeric vector)

Value

the angle of the vector, in degrees clockwise from 12 o'clock


matthewkling/windscape documentation built on Sept. 26, 2024, 4:22 p.m.