Test Whether Points are Inside a
Same as, e.g.,
inside.owin from package spatstat.geom
point.in.polygon from package sp,
i.e., test whether points lie inside or outside a given polygon.
Actually, the method for
"gpc.poly" documented here internally uses
The nodes and edges of (non-hole) polygons are treated as being inside. Points that fall strictly inside holes are treated as being outside of the polygon.
Logical vector whose
ith entry is
TRUE if the corresponding
(x[i],y[i]) is inside