dist_df: Compute distance between corresponding coordinate pairs in...

Description Usage Arguments Value

View source: R/RcppExports.R

Description

Compute distance between corresponding coordinate pairs and return vector. For use when creating a new data frame or tbl_df column.

Usage

1
dist_df(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

Vector of distances between each coordinate pair in meters


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