This function interpolates values at specified points using x, y coordinates and a target variable from a shapefile. It supports "Kriging" and "Tps" interpolation methods.
shapefile_interpolate(
shapefile,
z,
x = "x",
y = "y",
interpolation = c("Kriging", "Tps"),
verbose = FALSE
)
A vector of interpolated values at the specified points.
An sf object containing the x, y, and target variable (z)
columns. It is highly recommended to use shapefile_measures()
to obtain
this data.
A string specifying the name of the column in the shapefile that contains the target variable to be interpolated.
A string specifying the name of the column containing x-coordinates. Default is 'x'.
A string specifying the name of the column containing y-coordinates. Default is 'y'.
A character vector specifying the interpolation method. Options are "Kriging" or "Tps".
Logical; if TRUE, progress messages will be displayed.