Skip to contents

Count the number of segements in a SpatVector of lines or polygons

Usage

# S4 method for class 'SpatVector'
nseg(x)

Arguments

x

SpatVector

Value

numeric

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