nseg.RdCount the number of segements in a SpatVector of lines or polygons
# S4 method for class 'SpatVector'
nseg(x)numeric
f <- system.file("ex/lux.shp", package="terra")
v <- vect(f)
nseg(v)
#> [1] 330 441 308 165 363 249 195 296 297 442 538 359