Spatial interpolation with gstat::idw (inverse distance weighting) and gstat::krige (local ordinary krigging). Function OrdKrig is preparing simple .txt files for the use with krige and idw, performing interpolation and writing GEOtiff maps. Optimisation functions are available for krige and idw and can be used with optim or hydroPSO.
First install the package with:
install.packages("devtools")
library(devtools)
install_github("JBrenn/SpatialInterpol")
and then import the library with:
library(SpatialInterpol)