Learn R Programming

stplanr (version 0.1.4)

sum_network_routes: Summarise shortest path between nodes on network

Description

Summarise shortest path between nodes on network

Usage

sum_network_routes(sln, start, end, sumvars)

Arguments

sln
The SpatialLinesNetwork to use.
start
Node ID(s) of route starts.
end
Node ID(s) of route ends.
sumvars
Character vector of variables for which to calculate summary statistics.

Details

Find the shortest path on the network between specified nodes and returns a SpatialLinesdataFrame containing the path(s) and summary statistics of each one.