buildLDC: Calculate parameter loading capacity

View source: R/buildLDC.R

buildLDCR Documentation

Calculate parameter loading capacity

Description

Uses flow, parameter concentration, and standard values to determine observed loading and loading capacity

Usage

buildLDC(
  x,
  flow,
  date,
  value,
  location,
  parameter,
  crit,
  loading_units,
  mos = 0.1,
  cf,
  plot_it = TRUE
)

Arguments

x

A data frame containing columns indicating flow and parameter concentration for given dates (required for plotting: location and parameter name). Note that flow data for which no parameter values exist are still used to construct LDC plot.

flow

String. Column name containing flow data.

date

String. Column name containing date data.

value

String. Column name containing parameter concentration data.

location

String Column name containing location name(s).

parameter

String. Column name containing parameter name.

crit

Numeric. Represents the standard criterion (in same concentration units as parameter) against which observed loadings are compared.

loading_units

String. Indicates the loading units (amount/time) to be plotted on the y-axis of the LDC (if plot_it = TRUE).

mos

Numeric. A decimal representing the percent margin of safety to apply to the loading capacity for management decisions.

cf

Numeric. A value representing the correction factor linking flow and parameter concentration to desired unit (load per time).

plot_it

Logical. If TRUE, plots observed capacity and loading capacity in one figure in a load duration curve framework.

Value

A data frame containing original columns supplied to function plus observed loading, loading capacity, loading capacity plus margin of safety, season, and flow percentile.


utah-dwq/udwqTools documentation built on July 17, 2024, 10:21 p.m.