View source: R/07-interpolation.R
| spatial_interpolation | R Documentation |
Simplified version of spatial interpolation maintaining backward compatibility. For new projects, use spatial_interpolation_comprehensive() instead.
spatial_interpolation(
spatial_data,
target_variables,
method = "NN",
power = 2,
mice_method = "pmm"
)
spatial_data |
sf object with some missing values |
target_variables |
Variables to interpolate |
method |
Interpolation method: "NN", "simple", "mice" |
power |
Power parameter for simple method (default: 2) |
mice_method |
MICE method for multivariate imputation |
sf object with interpolated values
## Not run:
# These examples require external data files not included with the package
# Simple interpolation (legacy interface)
interpolated_data <- spatial_interpolation(
soil_data,
target_variables = c("nitrogen", "carbon"),
method = "NN"
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.