Learn R Programming

terra (version 1.8-10)

nseg: Number of segments

Description

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

Usage

# S4 method for SpatVector
nseg(x)

Value

numeric

Arguments

x

SpatVector

Examples

Run this code
f <- system.file("ex/lux.shp", package="terra")
v <- vect(f)
nseg(v)

Run the code above in your browser using DataLab