View source: R/interpolateTempFunctions.R
weeklyTempInterpolate | R Documentation |
Interpolates dataframe of observations to weekly timestep at 1 m depth intervals. Uses simple linear interpolation
weeklyTempInterpolate(
lakeAbr,
maxdepth,
dataset = LTERtemp,
constrainMethod = "zero"
)
lakeAbr |
Lake identification, string |
maxdepth |
Maximum depth of lake |
dataset |
temperature dataset. Default woudl be LTERtemp loaded via loadLTERtemp() |
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) |
returns a list [[1]]: observation data [[2]]: dataframe with three columns, data, depth, and var #' @examples #Interpolate temp data LTERtemp = loadLTERtemp() weeklyTempInterpolate(lakeAbr = 'ME', maxdepth = 24, dataset = LTERtemp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.