Learn R Programming

spNetwork (version 0.2.1)

remove_mirror_edges: Remove mirror edges

Description

Keep unique edges based on start and end point

Usage

remove_mirror_edges(lines, keep_shortest = TRUE, digits = 3, verbose = TRUE)

Arguments

lines

A SpatialLinesDataFrame

digits

An integer indicating the number of digits to keep in coordinates

keep_sortest

A boolean, if TRUE, then the shortest line is keeped if several lines have the same starting point and ending point. if FALSE, then the longest line is keeped.

Value

A SpatialLinesDataFrame with the mirror edges removed

Examples

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

Run the code above in your browser using DataLab