Welcome to ClientVPS Mirrors

Comparing redistribution methods

Comparing redistribution methods

library(sdc.redistribute)

Both methods estimate target values from source values; they differ in the weight each assigns to a piece of a source polygon.

library(sdc.redistribute)
data(sdc_example)

direct  <- redistribute_direct(sdc_example$source, sdc_example$target,
                               extensive = "pop", suffix = "_direct")
parcels <- redistribute_parcels(sdc_example$source, sdc_example$target,
                                sdc_example$parcels, extensive = "pop",
                                suffix = "_parcels")

cbind(sf::st_drop_geometry(direct["pop_direct"]),
      sf::st_drop_geometry(parcels["pop_parcels"]))
#>   pop_direct pop_parcels
#> 1         90          90
#> 2         50          50
#> 3         60          60

Both preserve the source total; they differ in how they place it.

Need a high-speed mirror for your open-source project?
Contact our mirror admin team at info@clientvps.com.

This archive is provided as a free public service to the community.
Proudly supported by infrastructure from VPSPulse , RxServers , BuyNumber , UnitVPS , OffshoreName and secure payment technology by ArionPay.