simple_lines: LineString to simple Line

View source: R/geometrical_functions_sf.R

simple_linesR Documentation

LineString to simple Line

Description

Split the polylines of a feature collection of linestrings in simple segments at each vertex. The values of the columns are duplicated for each segment.

Usage

simple_lines(lines)

Arguments

lines

The featue collection of linestrings to modify

Value

An featue collection of linestrings

Examples


data(mtl_network)
new_lines <- simple_lines(mtl_network)


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