R/create_potential_by_cat_sf.R
create_potential_by_cat_sf.Rd
Creates sf of geometry type point with a weighted value of features belonging to a specific category that match the applied time or distance filter
create_potential_by_cat_sf( odm_object, filter_value_type, accessibility_filter_value, search_direction, filter_attribute, filter_value, ors_profile )
odm_object | of type list encompassing a duration and a distance
matrix, the source and target locations. Created by using either
|
---|---|
filter_value_type | A string, "time" or "distance" |
accessibility_filter_value | A numeric value of minutes or meters |
search_direction | A string, "to_targets" or "from_targets" |
filter_attribute | A category column to subset the targets |
filter_value | A string with a specific category value |
ors_profile | Route profile, e.g. |
sf object of geometry type point
calc_odm()
or calc_odm_multicore()
for odm_object
creation and create_potential_sf()
to create a weighted value
for all features up to a threshold distance or time value
data(testdata) od_result <- testdata$od_result output_sf <- create_potential_by_cat_sf( odm_object = od_result, filter_value_type = "distance", accessibility_filter_value = 750, search_direction = "to_target", filter_attribute = "category", filter_value = "A", ors_profile = "foot-walking" )