nseg {terra} | R Documentation |
Number of segments
Description
Count the number of segements in a SpatVector of lines or polygons
Usage
## S4 method for signature 'SpatVector'
nseg(x)
Arguments
x |
SpatVector |
Value
numeric
Examples
f <- system.file("ex/lux.shp", package="terra")
v <- vect(f)
nseg(v)
[Package terra version 1.8-60 Index]