direct_lines: Make a network directed

Description Usage Arguments Value Examples

View source: R/graph_functions.R

Description

Function to create complementary lines for a directed network.

Usage

1
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

1
#This is an internal function, no example provided

spNetwork documentation built on Oct. 30, 2021, 5:06 p.m.