powered by
Count the number of segements in a SpatVector of lines or polygons
# S4 method for SpatVector nseg(x)
numeric
SpatVector
f <- system.file("ex/lux.shp", package="terra") v <- vect(f) nseg(v)
Run the code above in your browser using DataLab