R/utils.R
st_duplicated.Rd
Determine duplicated geometries
st_duplicated(x)
An object of class sf or sfc.
sf
sfc
A logical vector specifying for each feature in x if its geometry is equal to a previous feature in x.
x
duplicated
library(sf, quietly = TRUE) p1 = st_sfc(st_point(c(1, 1))) p2 = st_sfc(st_point(c(0, 0))) p3 = st_sfc(st_point(c(1, 0))) st_duplicated(c(p1, p2, p2, p3, p1)) #> [1] FALSE FALSE TRUE FALSE TRUE