st_duplicated: Determine duplicated geometries

View source: R/utils.R

st_duplicatedR Documentation

Determine duplicated geometries

Description

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

duplicated

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))


luukvdmeer/sfnetworks documentation built on Nov. 21, 2024, 4:54 a.m.