simple_distance: Get distance

Description Usage Arguments Value

View source: R/fishing_coordinates.R

Description

This function is to calculate the distane between two coordinates based on how a crow flies.

Usage

1
simple_distance(lon1, lat1, lon2, lat2)

Arguments

lon1

longitude of point 1

lat1

latitude of point 1

lon2

longitude of point 2

lat2

latitude of point 2

Value

the distance between two points. If lat1, lon1, lat2, and lon2 were supplied as a vector, it will return a vector of distances.


ellewibisono/ifish documentation built on June 25, 2020, 12:06 a.m.