Calculate an average coverage rate within an area of interest by applying a threshold filter to one of the sf (geometry type point) attributes "Min_Dist" or "Min_Time". A source location is defined as covered if a target location is accessible within the threshold distance or time.

aggregate_coverage_rate_by_threshold(
  aoi_sf,
  pnt_sf,
  id_col,
  threshold_col,
  threshold_value,
  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

threshold_col

Name of the threshold value column, "Min_Dist" or "Min_Time"

threshold_value

A numeric threshold value, minutes or meters

crs

epsg code

Value

sf of geometry type polygon including an aggregated coverage rate target potentials

See also

create_time_distance_sf() to create a suitable sf

Examples

data(testdata) pnt_sf <- create_time_distance_sf(odm_object = testdata$od_result)
#> New names: #> * `` -> ...1 #> * `` -> ...2
#> New names: #> * `` -> ...1 #> * `` -> ...2
output_sf <- aggregate_coverage_rate_by_threshold( aoi_sf = testdata$grid_500m, pnt_sf = pnt_sf, id_col = "id", threshold_col = "Min_Dist", threshold_value = 350, crs = 4647 )
#> Joining, by = "id"