add_bearings: Add track bearing

Description Usage Arguments Value References

View source: R/add_bearing.R

Description

Function to add the initial bearing based on the start and stop coordinates of the track.

Usage

1
add_bearings(stations)

Arguments

stations

Dataframe (tibble) of the samples stations including the attributes "Lon_start_DD", "Lat_start_DD", "Lon_stop_DD", "Lat_stop_DD".

Value

Returns the input dataframe (tibble) with an added attributes called "Bearing_calc" and "Bearing_calc". Stations without start and stop coordinates have NA in these added columns.

References

geosphere R-package


dswdejonge/TripleD documentation built on June 18, 2020, 12:24 p.m.