dist_mtom: Compute distance between each coordinate pair (many to many)...

Description Usage Arguments Value

View source: R/RcppExports.R

Description

Compute distance between each coordinate pair (many to many) and return matrix.

Usage

1
dist_mtom(xlon, xlat, ylon, ylat, dist_function = "Haversine")

Arguments

xlon

Vector of longitudes for starting coordinate pairs

xlat

Vector of latitudes for starting coordinate pairs

ylon

Vector of longitudes for ending coordinate pairs

ylat

Vector of latitudes for ending coordinate pairs

dist_function

String name of distance function: Haversine, Vincenty

Value

Matrix of distances between each coordinate pair in meters


btskinner/distRcpp documentation built on Sept. 17, 2021, 12:04 p.m.