nseg: Number of segments

nsegR 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)

rspatial/terra documentation built on Jan. 7, 2025, 6:27 p.m.