mapDistance: Take two latlon coordinates, and return the distance between...

Description Usage Arguments Value

View source: R/mapDistance.R

Description

Take two latlon coordinates, and return the distance between them.

Usage

1
mapDistance(lat.1, lon.1, lat.2, lon.2, unit = "km")

Arguments

lat.1

latitude position, point 1

lon.1

longitude position, point 1

lat.2

latitude position, point 2

lon.2

longitude position, point 2

unit

distance units desired for output, default "km"

Value

numeric value, km between the two points


rossholmberg/pkgButterfly documentation built on May 27, 2019, 11:36 p.m.