| summary.dodgr_dists_categorical | R Documentation |
Transform a result from dodgr_dists_categorical to summary statistics
## S3 method for class 'dodgr_dists_categorical'
summary(object, ...)
object |
A 'dodgr_dists_categorical' object |
... |
Extra parameters currently not used |
The summary statistics (invisibly)
Other misc:
compare_heaps(),
dodgr_flowmap(),
dodgr_full_cycles(),
dodgr_fundamental_cycles(),
dodgr_insert_vertex(),
dodgr_sample(),
dodgr_sflines_to_poly(),
dodgr_vertices(),
merge_directed_graph(),
write_dodgr_wt_profile()
# Prepare a graph for categorical routing by including an "edge_type" column
graph <- weight_streetnet (hampi, wt_profile = "foot")
graph <- graph [graph$component == 1, ]
graph$edge_type <- graph$highway
# Define start and end points for categorical distances; using all vertices
# here.
length (unique (graph$edge_type)) # Number of categories
v <- dodgr_vertices (graph)
from <- to <- v$id [1:100]
d <- dodgr_dists_categorical (graph, from, to)
# Internal 'summary' method to summarise results:
summary (d)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.