View source: R/interpolateFunctions.R
weeklyInterpolate | R Documentation |
Interpolates dataframe of observations to weekly timestep at 1 m depth intervals. Uses the premise that nutrient profiles should match temperature profiles
weeklyInterpolate(
lakeAbr,
var,
dataset,
maxdepth,
constrainMethod = "zero",
setThreshold = 0.1,
printFigs = FALSE
)
lakeAbr |
Lake identification, string |
var |
Variable of interest. Use availableVars() to see available variables. |
dataset |
NTL dataset with the variable of interest downloaded via loadLTER...() functions |
maxdepth |
Maximum depth of lake |
constrainMethod |
Options to constrain interpolation. Options are 'zero' (cannot go below zero, cannot go 1.5x above max, default) and 'range' (can not go beyond range of observed data) |
setThreshold |
Threshold of RMSE for interpolation. Use units of variable. If the function returns many predict.lm warnings, the threshold should be increased. |
printFigs |
Output individual profiles of interpolation? Options TRUE or FALSE (default) |
returns a list [[1]]: observation data [[2]]: dataframe with three columns, data, depth, and var #' @examples #Interpolate TP data NTLnutrients = loadLTERnutrients() weeklyInterpolate.1D(lakeAbr = 'ME',var = 'drp_sloh',dataset = NTLnutrients)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.