onewaygeo {stplanr} | R Documentation |
Aggregate flows so they become non-directional (by geometry - the slow way)
Description
Flow data often contains movement in two directions: from point A to point B and then from B to A. This can be problematic for transport planning, because the magnitude of flow along a route can be masked by flows the other direction. If only the largest flow in either direction is captured in an analysis, for example, the true extent of travel will by heavily under-estimated for OD pairs which have similar amounts of travel in both directions.
Usage
onewaygeo(x, attrib)
Arguments
x |
A dataset containing linestring geometries |
attrib |
A text string containing the name of the line's attribute to aggregate or a numeric vector of the columns to be aggregated |
Details
This function aggregates directional flows into non-directional flows, potentially halving the number of lines objects and reducing the number of overlapping lines to zero.
Value
onewaygeo
outputs a SpatialLinesDataFrame with single lines
and user-selected attribute values that have been aggregated. Only lines
with a distance (i.e. not intra-zone flows) are included
See Also
Other lines:
angle_diff()
,
geo_toptail()
,
is_linepoint()
,
line2df()
,
line2points()
,
line_bearing()
,
line_breakup()
,
line_midpoint()
,
line_segment()
,
line_segment1()
,
line_via()
,
mats2line()
,
n_segments()
,
n_vertices()
,
points2line()
,
toptail_buff()