od_coordinates_ids | R Documentation |
This function takes a matrix with 4 columns representing origin and destination coordinates and returns a data frame with 3 columns with the ID of each linestring, plus the coordinates representing origin and destination coordinates. Essentially the function is a pivot, converting from wide to long format, to feed into other functions for creating geographic desire lines.
od_coordinates_ids(odc)
odc |
A matrix containing coordinates representing line start and end points |
od_coordinates_ids(od_coordinates(od_data_df, p = od_data_zones, sfnames = TRUE))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.