Learn R Programming

spNetwork (version 0.2.1)

direct_lines: Make a network directed

Description

Function to create complementary lines for a directed network.

Usage

direct_lines(lines, direction)

Arguments

lines

The original SpatialLinesDataFrame

direction

A vector of integers. 0 indicates a bidirectional line and 1 an unidirectional line

Value

A SpatialLinesDataFrame with some lines duplicated according to direction

Examples

Run this code
# NOT RUN {
#This is an internal function, no example provided
# }

Run the code above in your browser using DataLab