View source: R/extendr-wrappers.R
centroids | R Documentation |
Given a vector of geometries, extract their centroids.
centroids(x)
x |
an object of class |
an object of class rs_POINT
lns <- geom_linestring(1:100, runif(100, -10, 10), rep.int(1:5, 20))
centroids(lns)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.