| centroids {terra} | R Documentation |
Get the centroids for the polygons of a SpatVector
## S4 method for signature 'SpatVector' centroids(x)
x |
SpatVector |
SpatVector of points
f <- system.file("ex/lux.shp", package="terra")
v <- vect(f)
x <- centroids(v)