calcHaversine.Rd
This function calculates geodesic distance using the Haversine method.
calcHaversine(latLongs, r = 6378137)
Two column matrix of latitudes/longitudes
Earth radius. Default is WGS-84 radius
# two-column matrix with latitude/longitude, in degrees latLong = cbind(runif(n = 5, min = 0, max = 90), runif(n = 5, min = 0, max = 180)) # Haversine distance formula distMat = calcHaversine(latLongs = latLong)