Cumulative distances along different edge categories
Cumulative distances along different edge categories
dodgr_dists_categorical( graph, from = NULL, to = NULL, proportions_only = FALSE, dlimit = NULL, heap = "BHeap", quiet = TRUE )
graph |
|
from |
Vector or matrix of points from which route distances are to be calculated (see Notes) |
to |
Vector or matrix of points to which route distances are to be calculated (see Notes) |
proportions_only |
If |
dlimit |
If |
heap |
Type of heap to use in priority queue. Options include
Fibonacci Heap (default; |
quiet |
If |
If dlimit = FALSE
, a list of distance matrices of equal dimensions
(length(from), length(to)), the first of which ("distance") holds the final
distances, while the rest are one matrix for each unique value of
"edge_type", holding the distances traversed along those types of edges only.
If dlimit = TRUE
, a single matrix of total distances along all ways from
each point, along with distances along each of the different kinds of ways
specified in the "edge_type" column of the input graph.
The "edge_type" column in the graph can contain any kind of discrete or
categorical values, although integer values of 0 are not permissible. NA
values are ignored. The function requires one full distance
matrix to be stored for each category of "edge_type" (unless
proportions_only = TRUE
). It is wise to keep numbers of discrete types as
low as possible, especially for large distance matrices.
Setting the proportions_only
flag to TRUE
may be advantageous for
large jobs, because this avoids construction of the full matrices. This may
speed up calculations, but perhaps more importantly it may make possible
calculations which would otherwise require distance matrices too large to be
directly stored.
Other distances:
dodgr_distances()
,
dodgr_dists()
,
dodgr_flows_aggregate()
,
dodgr_flows_disperse()
,
dodgr_flows_si()
,
dodgr_isochrones()
,
dodgr_isodists()
,
dodgr_isoverts()
,
dodgr_paths()
,
dodgr_times()
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.