Intermediate function called when are more than one variables to be interpolated.
This is used to simplify the code for aw_interpolate
.
aw_interpolate_multiple(source, sid, values, target, tid, type, weight)
Arguments
source |
A sf object with data to be interpolated |
sid |
A unique identification number within source |
values |
A vector of columns within source to be interpolated |
target |
A sf object that data should be interpolated to |
tid |
A unique identification number within target |
type |
One of either "extensive" (if the data are spatially extensive e.g.
population counts), "intensive" (if the data are spatially intensive e.g.
population density), or "mixed" (if the data include both extensive and
intensive values). If "extensive" , the sum is returned for the interpolated
value. If "intensive" , the mean is returned for the interpolated value.
If "mixed" , vectors named "extensive" and "intensive" containing
the relevant variable names should be specified in the dots. |
weight |
For "extensive" interpolations; should be either "total" or
"sum" . |
Value
A tibble with interpolated data, ready for final merge with target
.