powered by
This method returns the length of lines or the perimeter of polygons.
# S4 method for SpatVector perim(x)
SpatVector
numeric (m)
# NOT RUN { f <- system.file("ex/lux.shp", package="terra") v <- vect(f) perim(v) # }
Run the code above in your browser using DataLab