find.endpoint.nodes: find.endpoint.nodes

View source: R/spatial clean fcns.R

find.endpoint.nodesR Documentation

find.endpoint.nodes

Description

Gets all endpoints of all lines of a LINESTRING sf object. Returns an sf object with points representing nodes, with a column "n" representing the number of line segments that start or end with that node. Requires an "id" column in segment sf. adopts workflow from https://www.r-spatial.org/r/2019/09/26/spatial-networks.html

Usage

find.endpoint.nodes(x, line.ids = c("signt1", "sign1"))

kmcd39/divM documentation built on Oct. 21, 2023, 11:28 p.m.