compute perimeter from polygons or other geometries
st_perimeter(x) st_perimeter_2d(x)
x
object of class sf, sfc or sfg
sf
sfc
sfg
numerical vector with perimeter for each feature (geometry), with unit of measure when possible