powered by
Convert OD data into lines with start and end points sampled on a network
od_to_network( x, z, zd = NULL, silent = TRUE, package = "sf", crs = 4326, network = NULL )
A data frame in which the first two columns are codes representing points/zones of origin and destination
Zones representing origins and destinations
Zones representing destinations
Hide messages? FALSE by default.
FALSE
Which package to use to create the sf object? sfheaders is the default.
sfheaders
The coordinate reference system of the output, if not known in z. 4326 by default.
z
An sf object representing a transport network
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))
Run the code above in your browser using DataLab