pp_round | R Documentation |
Rounding Function
pp_round(x, tpop, spop, sid)
x |
An object of class |
tpop |
Target population estimates obtained by the pp_estimate function |
spop |
Initial source population values (included after the implementation of the pp_estimate function) |
sid |
Source identification number |
An object of class sf
including rounded population counts stored
in a new column called pp_int
# read lib data
data('src')
data('trg')
# areal weighted interpolation - awi
awi <- pp_estimate(trg, src, sid = sid, spop = pop,
method = awi)
# volume weighted interpolation - vwi
vwi <- pp_estimate(trg, src, sid = sid, spop = pop,
method = vwi, volume = floors)
# awi - round
pp_round(awi, tpop = pp_est, spop = pop, sid = sid)
# vwi - round
pp_round(vwi, tpop = pp_est, spop = pop, sid = sid)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.