odc_to_sf {od} | R Documentation |
Convert origin-destination coordinates into geographic desire lines
Description
Convert origin-destination coordinates into geographic desire lines
Usage
odc_to_sf(odc, d = NULL, crs = 4326)
Arguments
odc |
A matrix containing coordinates representing line start and end points |
d |
An optional data frame to add to the geometry column |
crs |
The coordinate reference system of the output, if not known in |
Examples
(odc = od_coordinates(od_data_df, p = od_data_zones, sfnames = TRUE))
(l = odc_to_sf(odc))
plot(l)
lsfc = odc_to_sfc(odc)
[Package od version 0.4.4 Index]