humaniverse / compositr

R package to build composite scores and indices
Other
1 stars 0 forks source link

Add geographical methods #4

Open MikeJohnPage opened 2 weeks ago

MikeJohnPage commented 2 weeks ago
matthewgthomas commented 1 week ago

Aggregating indices to different levels of geography is a key part of making an index, so let's move those geographical aggregation functions into this package.

{compositr} doesn't necessarily need to work with spatial data though. The aggregation functions just need lookup tables (provided by {geographr}) and population counts (provided by {geographr}) but I can't think of any need for boundaries and other spatial data.

MikeJohnPage commented 1 week ago

Should calculate_extent() and calculate_proportion() be removed from geographr once they are added to compositr (I think so)?

matthewgthomas commented 1 week ago

Yes please. They're also separately implemented and used in IMD, so can be removed from there too once added to compositr.