mpsplinet | R Documentation |
Fits a mass preserving spline to a soil profile data
mpsplinet( obj, var.name, lam = 0.1, d = t(c(0, 5, 15, 30, 60, 100, 200)), vlow = 0, vhigh = 1000, show.progress = TRUE )
obj |
object of class SoilProfileCollection |
var.name |
character target variable name (must be a numeric variable) |
lam |
numeric lambda the smoothing parameter |
d |
numeric standard depths |
vlow |
numeric smallest value of the target variable (smaller values will be replaced) |
vhigh |
numeric highest value of the target variable (larger values will be replaced) |
show.progress |
logical specifies whether to display the progress bar |
Returns a list with four elements: idcol - site ID column var.fitted - matrix; are are spline-estimated values of the target variable at observed depths (upper and lower depths are indicated as attributes) var.std - matrix; are spline-estimated values of the target variable at standard depths var.1cm - matrix; are spline-estimated values of the target variable using the 1 cm increments
Brendan Malone and Tomislav Hengl
# mpsplinet(rdSoil, # var.name = "C", lam = 0.1, # d = t(c(0, 10)), vlow = 0, # vhigh = 1000, show.progress = TRUE # )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.