R/aggregate_coverage_rate_by_threshold.R
aggregate_coverage_rate_by_threshold.Rd
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 )
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, |
threshold_value | A numeric threshold value, minutes or meters |
crs | epsg code |
sf of geometry type polygon including an aggregated coverage rate target potentials
create_time_distance_sf()
to create a suitable sf
#>#> #>#>#> #>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 )#>