Learn R Programming

EGRET (version 2.3.0)

tableChange: Create a table of the changes in flow-normalized values between various points in time in the record

Description

These tables describe trends in flow-normalized concentration and in flow-normalized flux. They are described as changes in real units or in percent and als as slopes in real units per year or in percent per year. They are computed over pairs of time points. These time points can be user-defined or they can be set by the program to be the final year of the record and a set of years that are multiple of 5 years prior to that.

Usage

tableChange(eList, fluxUnit = 9, yearPoints = NA)

Arguments

eList
named list with at least the Daily and INFO dataframes
fluxUnit
object of fluxUnit class. printFluxUnitCheatSheet, or numeric represented the short code, or character representing the descriptive name.
yearPoints
numeric vector listing the years for which the change or slope computations are made, they need to be in chronological order. For example yearPoints=c(1975,1985,1995,2005), default is NA (which allows the program to set yearPoints automatically)

Examples

Run this code
eList <- Choptank_eList
# Water Year:
tableChange(eList, fluxUnit=6,yearPoints=c(2001,2005,2008,2009))
tableChange(eList, fluxUnit=9)
# Winter:
eList <- setPA(eList, paStart=12,paLong=3)
tableChange(eList, fluxUnit=6,yearPoints=c(2001,2005,2008,2009))

Run the code above in your browser using DataLab