interpolate a variable from one set of shapes to another
- in input data frame containing the variable(s) of interest to interpolate. Stratification of the variable can be achieved by grouping
- an input sf map,
- the columns to use to join the inputDf to the map provided in inputShape. This is in the format of a dplyr join specification.
- the column that we want to do areal interpolation on,
- an output map which may be grouped by the desired output,
- a list of columns from the inputDf (as a dplyr::vars(...) list) that define the stratification of inputDf and are desired in the output. Defaults to the grouping of inputDf
- a list of columns from the outputShape (as a dplyr::vars(...) list) that we want preserved in output, or defined as a grouping of outputShape
- a function that will be applied to area weighted components of interpolateVar - defaults to sum
a dataframe containing the grouping columns, the outputIdVar and the interpolated value of interpolateVar