Learn R Programming

spNetwork (version 0.4.4.6)

direct_lines: Make a network directed

Description

Function to create complementary lines for a directed network.

Usage

direct_lines(lines, direction)

Value

A feature collection of linestrings with some lines duplicated according to direction

Arguments

lines

The original feature collection of linestrings

direction

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

Examples

Run this code
#This is an internal function, no example provided

Run the code above in your browser using DataLab