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

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