Number of segments
nseg.Rd
Count 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.Rd
Count 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