Filter a dataframe with e/n or lat/long to an area of interest polygon (sf)
filter_geo_range(df, use_aoi, x = "long", y = "lat", crs_df = 4326)
Arguments
- df
Dataframe. Needs coordinate columns
- use_aoi
sf. Name of sf object defining the area of interest
- x
Character. Name of column with x coord
- y
Character. Name of column with y coord
- crs_df
Anything that will return a legitimate crs when passed to the
crs attribute of st_transform or st_as_sf
Value
Dataframe filtered to area of interest