sf::st_centroid
How sf runs Centroid: sf::st_centroid.
| Engine | sf |
|---|---|
| Tool name | sf::st_centroid |
| Interface | r |
| Implements | Centroid |
| Documentation | Not stated |
| Effects | modifies input: no, network: no |
| Notes | Not stated |
| Status | active |
Parameters
| Name | Type | Required | Default | Choices | Note |
|---|---|---|---|---|---|
x | any | yes | Not stated | Not stated | Not stated |
... | dots | no | Not stated | Not stated | further arguments passed on |
of_largest_polygon | any | no | FALSE | Not stated | Not stated |
How it maps to the operation
| Operation parameter | Parameter here | Note |
|---|---|---|
layer | x | Not stated |
inside | Not stated | always no. Use st_point_on_surface for a point inside the polygon. |
Differences from the operation
- of_largest_polygon = TRUE gives the centroid of each feature's largest part.
Harvested by the r-packages harvester from engine version
1.1.3. Names can change when an engine is harvested again.