Get a piecewise constant inerpolation based on the voronoi diagram

getVoronoiInterpolation(shp, varToInterpolate, fctToAggregate = mean)

Arguments

shp,

sf object

varToInterpolate,

chr variable to interpolate

fctToAggregate

fct used e.g. mean, median, max or other statistic

Value

voronoi, sf object with col varToInterpolate