isNearCoast: Determine the proximity to coast of points

View source: R/isNearCoast.R

isNearCoastR Documentation

Determine the proximity to coast of points

Description

Determine the proximity to coast of points

Usage

isNearCoast(
  dataPoints,
  colLon = "lon",
  colLat = "lat",
  units = "m",
  distance = 20
)

Arguments

dataPoints

data.frame which has Longitude and Latitude information.

colLon

Name of column which contains Longitude info.

colLat

Name of column which contains Latitude info.

units

Which units do you want to use for measuring the proximity to coast.

distance

Maximum distance (in degrees) to make the searching.

Value

A logical vector indicating whether the coordinates belong to the area between the coast line and a buffer of the selected distance.

Examples

isNearCoast(c(-81.191, -5.211), distance = 20)
isNearCoast(c(-81.191, -5.211), distance = 10)

LuisLauM/ruisu documentation built on March 26, 2024, 8:23 a.m.