Learn R Programming

s2 (version 0.4-2)

S2Polygons_centroid: compute centroids for a list of s2polygons

Description

this function is equivalent to st_centroid, in that it returns a numeric vector with polygon centroids

Usage

S2Polygons_centroid(x)

Arguments

x

List of list of loops represented by three-column matrices.