pp_estimate | R Documentation |
Areal Interpolation of Population Data
pp_estimate(
target,
source,
sid,
spop,
volume = NULL,
ancillary = NULL,
point = FALSE,
method
)
target |
An object of class |
source |
An object of class |
sid |
Source identification number |
spop |
Source population values to be interpolated |
volume |
Target feature volume information (height or number of floors).
Required when |
ancillary |
ancillary information |
point |
Whether to return point geometries (FALSE by default) |
method |
Two methods provided: |
An object of class sf
including estimated population
counts for target features using either awi
or vwi
methods. The estimated population counts are stored in a new column called
pp_est.
# read lib data
data('src')
data('trg')
# areal weighted interpolation - awi
pp_estimate(trg, src, sid = sid, spop = pop,
method = awi)
# areal weighted interpolation - awi using point geometries
pp_estimate(trg, src, sid = sid, spop = pop,
method = awi, point = TRUE)
# volume weighted interpolation - vwi
pp_estimate(trg, src, sid = sid, spop = pop,
method = vwi, volume = floors)
# volume weighted interpolation - vwi using point geometries
pp_estimate(trg, src, sid = sid, spop = pop,
method = vwi, volume = floors, point = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.