The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.

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.

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.