View source: R/process_presence_absence.R
remove_points_polygon | R Documentation |
This function removes points from a dataframe based on their location relative to a specified polygon.
remove_points_polygon(
df,
polygon,
overlapping = FALSE,
coords = c("decimalLongitude", "decimalLatitude")
)
df |
A dataframe object with rows representing points. |
polygon |
An sf polygon object defining the region for point removal. |
overlapping |
Logical indicating whether points overlapping the polygon should be removed (TRUE) or kept (FALSE). |
coords |
Character vector specifying the column names for longitude and latitude. Default is c("decimalLongitude", "decimalLatitude"). |
A dataframe containing the filtered points.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.