Aggregate the sf (geometry type point) attribute "MeanCnt" or "MedianCnt" to an area of interest

aggregate_accumulation(aoi_sf, pnt_sf, id_col, crs = 4647)

Arguments

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

Value

sf of geometry type polygon including aggregated target counts

See also

create_cumulative_sf() to create a suitable sf

Examples

data(testdata) pnt_sf <- create_cumulative_sf( odm_object = testdata$od_result, filter_value_type = "distance", accessibility_filter_value = 750, search_direction = "to_target" ) output_sf <- aggregate_accumulation( aoi_sf = testdata$grid_500m, pnt_sf = pnt_sf, id_col = "id", crs = 4647 )
#> Joining, by = "id"