perim {terra}R Documentation

Perimeter or length

Description

This method returns the length of lines or the perimeter of polygons.

Usage

## S4 method for signature 'SpatVector'
perim(x)

Arguments

x

SpatVector

Value

numeric (m)

Examples

f <- system.file("ex/lux.shp", package="terra")
v <- vect(f)
perim(v)

[Package terra version 1.2-10 Index]