sum(terra::values(common$agg), na.rm = TRUE) should be the same as sum(terra::values(common$agg_prep), na.rm = TRUE) and sum(terra::values(common$agg_prep_lores), na.rm = TRUE) but using agg_worldpop for madagascar for agg it is 27125031 but agg_prep is 19151572
sum(terra::values(common$agg), na.rm = TRUE)
should be the same assum(terra::values(common$agg_prep), na.rm = TRUE)
andsum(terra::values(common$agg_prep_lores), na.rm = TRUE)
but usingagg_worldpop
for madagascar foragg
it is27125031
butagg_prep
is19151572