R/Spatial.R
addCentroidToProjection.RdAdd centroid and possibly other fields to an existing proj4String:
addCentroidToProjection(
proj4String,
centroid,
lon_name = "lon",
lat_name = "lat",
additionalFields = NULL
)A proj4 string.
Either a vector of longitude and latitude value, or a named list of this information.
Character: The names of the longitude and latitude fields in centroid if given as a list.
Character: Optional extra proj4 fields in a single string.