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")
)
A dataframe containing the filtered points.
A dataframe object with rows representing points.
An sf polygon object defining the region for point removal.
Logical indicating whether points overlapping the polygon should be removed (TRUE) or kept (FALSE).
Character vector specifying the column names for longitude and latitude. Default is c("decimalLongitude", "decimalLatitude").