Description Usage Arguments Details Value Author(s) References See Also Examples

Function `bearing`

calculates the bearing, in degrees, between two geographical locations.
Function `bearingTrack`

calculates the bearing between a sequence of locations.

1 2 | ```
bearing(lat1, lat2, lon1, lon2)
bearingTrack(lat, lon)
``` |

`lat1` |
latitude of the first location, in decimal degrees |

`lat2` |
latitude of the second location, in decimal degrees |

`lon1` |
longitude of the first location, in decimal degrees |

`lon2` |
longitude of the second location, in decimal degrees |

`lat` |
vector of latitudes, in decimal degrees |

`lon` |
vector of longitudes, in decimal degrees |

Bearings are calculated using spherical trigonometry. Formulas are given in Zwillinger (2003).

`bearing`

returns the bearing, in degrees, between the first location and
the second location. 0 is North. `bearingTrack`

returns a vector of bearings between the sequence
of locations.

Carla Freitas

Zwillinger D. (2003) *Standard Mathematical Tables and Formulae*, 31st edition.
Chapman & Hall/CRC, Boca Raton, FL.

1 2 3 4 5 6 7 8 9 10 11 |

```
[1] -174.5692
[1] -176.381238 25.331500 -155.751354 -27.038854 18.731919 7.303981
[7] -171.209642 5.391068 -173.736972
```

argosfilter documentation built on May 30, 2017, 12:20 a.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.