estima_dc2: Distance to coast

View source: R/estima_dc2.R

estima_dc2R Documentation

Distance to coast

Description

Estimate the distance to shore on a projected map and transformed data. The default function loads a polygon from Peru and estimates the distance to the Peruvian coast. If you want to calculate the distance to the coast of another place to load your polygon, the polygon must have the class "SpatialPolygonsDataFrame", the distance is expressed in nautical miles. This function is 10 times faster than estimate_dc.

Usage

estima_dc2(x)

Arguments

x

Examples

longitude <- c(-77.1,-78.1,-77.3)
latitude <- c(-14,-13.4,-15.1)

dc <- estima_dc2(lon = longitude, lat = latitude, polygon = PERU_SP)

PabloMBooster/fenix documentation built on Oct. 21, 2023, 8:22 p.m.