| filter_dataframe_by_geojson | R Documentation |
This function does a test of only the unique (lat, lon) coordinates against the polygon. Then it joins the result to the full dataset with a data.table keyed semi-join.
filter_dataframe_by_geojson(df, geojson_file)
df |
data.frame with latitude and longitude columns |
geojson_file |
Character string path to GeoJSON file |
data.frame with spatially filtered data
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.