tmdlCalcs: Prep data for TMDL analysis and plotting

Description Usage Arguments Value

View source: R/tmdlCalcs_v2.R

Description

This function takes E.coli concentration and flow data (if applicable) to calculate geomean concentrations and loadings on a daily, monthly, rec-season, and irrigation season basis. Produces outputs that may be fed into plotting functions within the tmdlTools package.

Usage

1
tmdlCalcs(wb_path, exportfromfunc = FALSE)

Arguments

wb_path

A file path to the .xlsx file containing E.coli and flow data, linked by MLID/ML_Name/Date, contained in separate worksheets.

exportfromfunc

Logical. Indicates whether workbook should be exported from tmdlCalcs function, or skipped if using Shiny interface. Default is FALSE to accommodate Shiny use.

Value

The output includes a new Excel workbook with the name of the original file plus today's date.xlsx, as well as the following dataframes, composed within a list: ecoli concentrations, flow data, ldc data, monthly geomeans, rec/non rec geomeans, and irg/non irg geomeans.


utah-dwq/tmdlTools documentation built on Dec. 25, 2021, 10:48 a.m.