dist_gc: Calculate pairwise great circle distance between points

View source: R/main.R

dist_gcR Documentation

Calculate pairwise great circle distance between points

Description

Analogue of the dist() function, but calculating great circle distances (distance on the surface of a sphere). Points are input as longitude and latitude.

Usage

dist_gc(x)

Arguments

x

a two-column matrix or dataframe with longitude in the first column and latitude in the second.


bobverity/bobfunctions2 documentation built on July 4, 2023, 8:55 p.m.