Calculate matrix of pair-wise travel times between points using a single mode of transport.
Source:R/times-single-mode.R
m4ra_times_single_mode.RdCalculate matrix of pair-wise travel times between points using a single mode of transport.
Arguments
- graph
A
dodgrnetwork returned from the weight_streetnet function using a network obtained with the osmdataosmdata_scfunction.- 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)
- path
If specified, save individual travel time vectors for each 'from' point at that local directory.
fromandtovalues can be either two-column matrices or equivalent of longitude and latitude coordinates, or else single columns precisely matching node numbers or names given ingraph$fromorgraph$to. IftoisNULL, pairwise distances are calculated between all points specified infrom. If bothfromandtoareNULL, pairwise distances are calculated between all nodes ingraph.
See also
Other main:
m4ra_dists_n_pts(),
m4ra_gtfs_traveltimes(),
m4ra_times_multi_mode()
Examples
net <- dodgr::weight_streetnet (m4ra_hampi, wt_profile = "foot")
#> Loading required namespace: dplyr
traveltimes <- m4ra_times_single_mode (net)