Ryan Zomorrodi
  • CV
  • Projects

centr

A Package for Weighted and Unweighted Spatial Centers

Author

Ryan Zomorrodi

Published

July 21, 2024

Docs CRAN r-universe Source

centr is a package designed to calculate population weighted mean or median spatial centers. Mean centers can be calculated for projected and lon lat geometries. centr assumes a spherical representation of the earth for lon lat geometries, similar to S2.

Population weighted centroids are a powerful tool to calculate plausible population exposure measures, and I use them quite a bit in my work. Now with centr calculating population weighted centroids within R is easy and fast.

© 2024 Ryan Zomorrodi

  • View source
  • Report an issue