Description Usage Arguments Details Value Examples
Determins if points lie within the boundaries of polygons
1 | PointInPolygon(dt_polygons, polyColumns, dt_points, pointColumns)
|
dt_polygons |
|
polyColumns |
character vector of column names containing the id, lineId, x, y and hole fields (in that order) |
dt_points |
|
pointColumns |
character vector of column names containing the id, x and y fields (in that order) |
Calculates the winding number (https://en.wikipedia.org/wiki/Winding_number)
data.table
giving the ids of the points and the polygons within which they fall
1 2 3 4 | ## Not run:
## example
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.