Extract coordinates from OD dataSource:
Extract coordinates from OD data
A data frame representing origin-destination data. The first two columns of this data frame should correspond to the first column of the data in the zones. Thus in
cents(), the first column is geo_code. This corresponds to the first two columns of
A spatial object representing origins (and destinations if no separate destinations object is provided) of travel.
Origin-destination (OD) data is often provided
in the form of 1 line per OD pair, with zone codes of the trip origin in the first
column and the zone codes of the destination in the second column
vignette("stplanr-od")) for details.
od2odf() creates an 'origin-destination data frame', based on a data frame containing
origin and destination cones (
flow) that match the first column in a
a spatial (polygon or point) object (
The function returns a data frame with coordinates for the origin and destination.