Get coordinates of region centers (labpt)

getCenters(
  spdf,
  region = "region",
  regionsAsCharacters = TRUE,
  asTibble = TRUE
)

Arguments

spdf

SpatialPolygonDataFrame object

regionsAsCharacters

logical, should `regions` column in case of `factor` being coerced to character?

asTibble

logical

Value

data frame with coordinates of the regions' centers.

Examples

if (FALSE) { getCenters(spdf) get_labpt_spdf(spdf) }