hdg_norm: Create and export headings

Description Usage Arguments Examples

View source: R/heading.R

Description

Create and export headings

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13

Arguments

hdg

A heading in degrees, where 0 is north, 90 is east, 180 is south, and 270 is west. Values outside the range [0-360) are coerced to this range using hdg_norm().

uv, u, v

A data.frame with columns u (magnitude east) and v (magnitude north).

rad

An angle in radians such that a hdg of 90 is zero radians and a hdg of 0 is pi / 2 radians.

Examples

1
2
3
4
hdg_norm(-10:10)
hdg_from_uv(uv(1, 0))
uv_from_hdg(5:10)
uv_norm(uv(2, 0))

paleolimbot/headings documentation built on April 14, 2021, 8:33 a.m.