Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


spatialEco (version 2.0-1)

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
if(require(sf, quietly = TRUE)) {
  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