sfx_explode splits line by vertex

sfx_explode(x)

Arguments

x

sf LINESTRING.

Value

spatial lines

Examples

{
data(emisco)
dim(emisco)
dfco <- sfx_explode(emisco)
dim(dfco)
}
#> old-style crs object detected; please recreate object with a recent sf::st_crs()
#> old-style crs object detected; please recreate object with a recent sf::st_crs()
#> [1] 7205    3