Mass-Preserving Spline Functions for Soil Data
Spline discrete soils data - multiple sites
Spline discrete soils data - multiple sites, compact output
Convert data for splining
pre-spline data checks
Estimate spline parameters
Fit spline parameters
Spline discrete soils data - single site
calculate RMSE
Spline discrete soils data - multiple sites, tidy output
A low-dependency implementation of GSIF::mpspline() <https://r-forge.r-project.org/scm/viewvc.php/pkg/R/mpspline.R?view=markup&revision=240&root=gsif>, which applies a mass-preserving spline to soil attributes. Splining soil data is a safe way to make continuous down-profile estimates of attributes measured over discrete, often discontinuous depth intervals.