mpspline_fit1 {mpspline2} | R Documentation |
Fit spline parameters
Description
Fit spline parameters to data for a single site.
Usage
mpspline_fit1(
s = NULL,
p = NULL,
var_name = NULL,
d = NULL,
vhigh = NULL,
vlow = NULL
)
Arguments
s |
data.frame; data for one site |
p |
list; estimated spline parameters for one site from
|
var_name |
length-1 character or length-1 integer denoting the column in
|
d |
sequential integer vector; denotes the output depth ranges in cm.
Defaults to |
vhigh |
numeric; constrains the maximum predicted value to a realistic number. Defaults to 1000. |
vlow |
numeric; constrains the minimum predicted value to a realistic number. Defaults to 0. |
Value
list of two vectors: fitted values at 1cm intervals and the average of same over the requested depth ranges.