Return a collection of geometries resulting by splitting a geometry
st_split(x, y)
x
: object with geometries to be splittedy
: object split with (blade); if y
contains more than one feature geometry, the geometries are st_combine 'dobject of the same class as x
library(sf) l = st_as_sfc('MULTILINESTRING((10 10, 190 190), (15 15, 30 30, 100 90))') pt = st_sfc(st_point(c(30,30))) st_split(l, pt)
Useful links