View source: R/polyPerimeter.R
polyPerimeter | R Documentation |
Calculates the perimeter length(s) for a polygon object
polyPerimeter(x)
x |
sf POLYGON class object |
A vector of polygon perimeters in projection units
Jeffrey S. Evans <jeffrey_evans@tnc.org>
library(sf)
polys <- st_read(system.file("shape/nc.shp", package="sf"))
polys <- suppressWarnings(st_cast(polys[c(10,100),], "POLYGON"))
polyPerimeter(polys)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.