distCoast: Distance to the shoreline

Description Usage Arguments Value

View source: R/distCoast.R

Description

Calculates minimum distance to the Peruvian shoreline.

Usage

1
distCoast(lon, lat, mainLand = TRUE)

Arguments

lon

Longitude vector in decimal units (e.g. -76.5242).

lat

Latitude vector in decimal units (e.g. -12.1352).

mainLand

Logical value. Indicates if distance is calculated to the shoreline (TRUE) or to shoreline and islands (FALSE).

Value

A vector with distances (in nautical miles).


gmoroncorrea/VMSIndicators documentation built on Dec. 20, 2021, 11:50 a.m.