Aggregate the sf (geometry type point) attributes
"MeanPot" and "MedianPot" to an area of interest
aggregate_potential(aoi_sf, pnt_sf, id_col, crs = 4647)
| aoi_sf | sf of geometry type polygon used for aggregation |
|---|---|
| pnt_sf | sf of geometry type point including attribute to be aggregated |
| id_col | name of the id column used for grouping operations |
| crs | epsg code |
sf of geometry type polygon including aggregated weighted target potentials
create_potential_sf() to create a suitable sf
data(testdata) pnt_sf <- create_potential_sf( odm_object = testdata$od_result, filter_value_type = "distance", accessibility_filter_value = 750, search_direction = "to_target", ors_profile = "foot-walking" ) output_sf <- aggregate_potential( aoi_sf = testdata$grid_500m, pnt_sf = pnt_sf, id_col = "id", crs = 4647 )#>