Tests only unique (lat, lon) coordinates against the polygon, then joins
back to full dataset via data.table keyed semi-join.
Usage
filter_dataframe_by_geojson(df, geojson_file)
Arguments
- df
data.frame with latitude and longitude columns
- geojson_file
Character string path to GeoJSON file
Value
data.frame with spatially filtered data