lines_extremities: Get lines extremities

View source: R/geometrical_functions_sf.R

lines_extremitiesR Documentation

Get lines extremities

Description

Generate a feature collection of points with the first and last vertex of each line in a feature collection of linestrings.

Usage

lines_extremities(lines)

Arguments

lines

A feature collection of linestrings (simple Linestrings)

Value

A feature collection of points

Examples

data(mtl_network)
points <- lines_extremities(mtl_network)

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