% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/core.R
\name{centroid_geoms}
\alias{centroid_geoms}
\title{Compute centroids without attribute warnings}
\usage{
centroid_geoms(x, centroid_fun = c("centroid", "point_on_surface"))
}
\arguments{
\item{x}{An sf or sfc object}

\item{centroid_fun}{"centroid" (default) or "point_on_surface"}
}
\value{
sfc geometry column of point centroids
}
\description{
Wraps sf::st_centroid / sf::st_point_on_surface, operating on
st_geometry() rather than the full sf object. Returns an sfc column.
}
\keyword{internal}
