R/fun_filter_by_bounds.R
atl_within_polygon.RdDetects which positions intersect a sfc_*POLYGON. Tested
only for single polygon objects.
atl_within_polygon(data, x = "x", y = "y", polygon)
| data | A dataframe or similar containg at least X and Y coordinates. |
|---|---|
| x | The name of the X coordinate, assumed by default to be "x". |
| y | The Y coordinate as above, default "y". |
| polygon | An |
Row numbers of positions which are inside the polygon.