heading: heading

Description Usage Arguments Value Examples

View source: R/heading.R

Description

Calculates the degree heading of two velocity vectors

Usage

1
heading(ve, vn)

Arguments

ve

A vector of velocities to the east.

vn

A vector of velocities to the north. Must be the same length as ve

Value

A vector the same length as ve.

Examples

1
2
3
4
heading(rnorm(5), rnorm(5))
easting <- c(0,1,1,1,0,-1,-1,-1)
northing <- c(1,1,0,-1,-1,-1,0,1)
heading(easting,northing)

jasonfischer/rivSurveyR documentation built on May 18, 2019, 5:54 p.m.