Create a table of the changes in flow-normalized concentration or flux values between various points in time in the record

Share:

Description

This table describe trends in flow-normalized concentration or flux depending on if flux is defined as TRUE or FALSE. The results 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 (Year1 to Year2). 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

1
tableChangeSingle(eList, fluxUnit = 9, yearPoints = NA, flux = FALSE)

Arguments

eList

named list with at least 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)

flux

logical if TRUE results are returned in flux, if FALSE concentration. Default is set to FALSE.

Value

resultsDF dataframe describing trends in flow-normalized concentration or flux if returnDataFrame is TRUE

dataframe with Year1, Year2, change[mg/L], slope[mg/L], change[percent], slope[percent] columns. The data in each row is the change or slope calculated from Year1 to Year2

Examples

1
2
3
4
5
6
7
8
9
eList <- Choptank_eList
# Water Year:
#This returns concentration ASCII table in the console:
tableChangeSingle(eList, fluxUnit=6,yearPoints=c(2001,2005,2008,2009), flux=FALSE)
#This returns flux values ASCII table in the console
tableChangeSingle(eList, fluxUnit=6,yearPoints=c(2001,2005,2008,2009), flux=TRUE)  
# Winter:
eList <- setPA(eList, paStart=12,paLong=3)
tableChangeSingle(eList, fluxUnit=6,yearPoints=c(2001,2005,2008,2009), flux=FALSE)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.