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

JeremyGelb/spNetwork documentation built on May 24, 2024, 7:23 p.m.