Skip to contents

Determine duplicated geometries

Usage

st_duplicated(x)

Arguments

x

An object of class sf or sfc.

Value

A logical vector specifying for each feature in x if its geometry is equal to a previous feature in x.

See also

Examples

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