od_to_network {od} | R Documentation |
Convert OD data into lines with start and end points sampled on a network
Description
Convert OD data into lines with start and end points sampled on a network
Usage
od_to_network(
x,
z,
zd = NULL,
silent = TRUE,
package = "sf",
crs = 4326,
network = NULL
)
Arguments
x |
A data frame in which the first two columns are codes representing points/zones of origin and destination |
z |
Zones representing origins and destinations |
zd |
Zones representing destinations |
silent |
Hide messages? |
package |
Which package to use to create the sf object? |
crs |
The coordinate reference system of the output, if not known in |
network |
An sf object representing a transport network |
Examples
x = od_data_df
z = od_data_zones_min
network = od_data_network
(lines_to_points_on_network = od_to_network(x, z, network = network))
(lines_to_points = od_to_sf(x, z))
[Package od version 0.4.4 Index]