dot-is.in: Are Points in Polygons?

dot-is.inR Documentation

Are Points in Polygons?

Description

Determines which points (EventData) are located inside a polygon (PolySet).

Usage

.is.in(events, polys, use.names=TRUE)

Arguments

events

numeric – data frame of event data (points), with X and Y coordinates; not necessarily a PBSmapping EventData object

polys

numeric – a PBSmapping PolySet (polygon)

use.names

logicalcurrently not used

Details

Taps into the PBSmapping C code for 'findPolys'.

Value

Reports events inside the polygon, outside the polygon, and whether all events are inside, outside, or on the boundary of the polygon.

Author(s)

Rowan Haigh, Program Head – Offshore Rockfish
Pacific Biological Station (PBS), Fisheries & Oceans Canada (DFO), Nanaimo BC
locus opus: Remote office, Vancouver BC
Last modified Rd: 2024-03-11

See Also

In PBSmapping:
findPolys, as.EventData, is.PolySet, findPolys


PBSmapping documentation built on Sept. 30, 2024, 9:21 a.m.