od_to_network | R Documentation |
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
)
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 |
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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.