Number of vertices

num_vert(poly)

Arguments

poly

Object of class sf, sfc, sfg or SpatialPolygons