ps_sfc_centroid1 | R Documentation |
Uses st_combine as opposed to st_union.
ps_sfc_centroid1(
x,
sfc_name = ps_active_sfc_name(x),
by = character(0),
nearest = FALSE
)
x |
The object |
sfc_name |
A string of the sfc column name |
by |
A character vector of the columns to get the centroid by. |
nearest |
A flag indicating whether to return the point closest to the centroid (as opposed to the actual centroid) |
Sf object of centroid
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.