Learn R Programming

spatialEco (version 2.0-2)

polyPerimeter: Polygon perimeter

Description

Calculates the perimeter length(s) for a polygon object

Usage

polyPerimeter(x)

Value

A vector of polygon perimeters in projection units

Arguments

x

sf POLYGON class object

Author

Jeffrey S. Evans <jeffrey_evans@tnc.org>

Examples

Run this code
library(sf)
  polys <- st_read(system.file("shape/nc.shp", package="sf"))
    polys <- suppressWarnings(st_cast(polys[c(10,100),], "POLYGON"))
 
 polyPerimeter(polys)

Run the code above in your browser using DataLab