Get coordinates of region centers (labpt)
getCenters( spdf, region = "region", regionsAsCharacters = TRUE, asTibble = TRUE )
spdf | SpatialPolygonDataFrame object |
---|---|
regionsAsCharacters | logical, should `regions` column in case of `factor` being coerced to character? |
asTibble | logical |
data frame with coordinates of the regions' centers.
if (FALSE) { getCenters(spdf) get_labpt_spdf(spdf) }