R/oi_im_pavement_width.R
oi_im_pavement_width.RdFunction to assess pedestrian infrastructure widths.
oi_im_pavement_width(osm_sf)A sf and data.frame object containing OpenStreetMap
infrastructure data, obtained from the
osmextract package.
the osm_sf is returned with additional columns openinfra_im_width
and openinfra_im_width_est with recategorised way width and estimated
width value ranges appended respectively.
Note: the osm_sf must contain the following tags: c("width", "est_width")
data = example_data
output = oi_im_pavement_width(data)
plot(output["openinfra_im_width_est"])
# Uncomment below to plot other columns
# plot(output["openinfra_im_width"])