st_explode: Split line by vertex (experimental)

View source: R/st_explode.R

st_explodeR Documentation

Split line by vertex (experimental)

Description

st_explode split a lines data.frame into each vertex. It to mimic the function explode from qgis, that the reason for the name st_explode

Usage

st_explode(net)

Arguments

net

A spatial dataframe of class "sp" or "sf". When class is "sp" it is transformed to "sf".

Note

All variables are transformed into numeric.

Examples

## Not run: 
# do not run
library(vein)
data(net)
net2 <- st_explode(net)
dim(net)
dim(net2)

## End(Not run)

eixport documentation built on Oct. 4, 2023, 9:13 a.m.