Learn R Programming

animaltracker (version 0.2.0)

calc_bearing: Helper function for cleaning Columbus P-1 datasets. Given lat and long coords in degree decimal, convert to radians and compute bearing.

Description

Helper function for cleaning Columbus P-1 datasets. Given lat and long coords in degree decimal, convert to radians and compute bearing.

Usage

calc_bearing(lat1, lon1, lat2, lon2)

Arguments

lat1

latitude of starting point

lon1

longitude of starting point

lat2

latitude of ending point

lon2

longitude of ending point

Value

bearing computed from given coordinates