
Number of segments
nseg.RdCount the number of segements in a SpatVector of lines or polygons
Examples
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

nseg.RdCount the number of segements in a SpatVector of lines or polygons
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