powered by
Function to create complementary lines for a directed network.
direct_lines(lines, direction)
The original SpatialLinesDataFrame
A vector of integers. 0 indicates a bidirectional line and 1 an unidirectional line
A SpatialLinesDataFrame with some lines duplicated according to direction
# NOT RUN { #This is an internal function, no example provided # }
Run the code above in your browser using DataLab