gcdist function

Great-circle distance

Great-circle distance

Great-circle distance function to calculate spatial distance from lat-long data. Called by various functions.

gcdist(x, y)

Arguments

  • x: vector of longitudes.
  • y: vector of latitudes.

Returns

The distance in km is returned

  • Maintainer: Ottar N. Bjornstad
  • License: GPL-3
  • Last published: 2022-05-07