Examples for 'terra::centroids'


Centroids

Aliases: centroids centroids,SpatVector-method

Keywords: spatial

### ** Examples

f <- system.file("ex/lux.shp", package="terra")
v <- vect(f)
x <- centroids(v)
y <- centroids(v, TRUE)

[Package terra version 1.5-34 Index]