direct_lines: Make a network directed

View source: R/graph_functions_sf.R

direct_linesR Documentation

Make a network directed

Description

Function to create complementary lines for a directed network.

Usage

direct_lines(lines, direction)

Arguments

lines

The original feature collection of linestrings

direction

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

Value

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

Examples

#This is an internal function, no example provided

spNetwork documentation built on Aug. 24, 2023, 5:10 p.m.