dot-is.in {PBSmapping}R 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: Offsite, Vancouver BC
Last modified Rd: 2023-10-30

See Also

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


[Package PBSmapping version 2.73.4 Index]