dist_1tom: Compute one to many distances.

Description Usage Arguments Value

View source: R/RcppExports.R

Description

Compute distances between single starting coordinate and vector of ending coordinates (one to many) and return vector.

Usage

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

Arguments

xlon

Longitude for starting coordinate pair

xlat

Latitude for starting coordinate pair

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

Vector of distances in meters


btskinner/distRcpp documentation built on Oct. 6, 2017, 11:40 a.m.