Generate a unique spline model for each OTM on each date (Julian) while the OTM was measuring
Usage
gen_otm_splines(otm_data, knot_p)
Arguments
- otm_data
An OTM data tibble
obtained via the function
rnp_otms_data
.
- knot_p
The number of knots the spline model should have to describe the
temperature dynamics of the OTM for a given day taken as a percentage of
the total number of operative measurements in a given day.
Value
A nested data frame (tibble
) with columns for otm_id
,
year
, doy
and spline
. The spline column is nested and
contains a OTM, year and DOY smooth.spline
model with the specified
number of knots.