LoadInstantaneous: LoadInstantaneous

View source: R/loadInstantaneous.R

LoadInstantaneousR Documentation

LoadInstantaneous

Description

Computation of loadings for individual discrete samples. Results in added columns to the concentration data frame that represent the maximum flow in the original flow units, volumes in the original volume units from the flow variable, and loadings in the original mass units from the concentration variable.

Usage

LoadInstantaneous(
  df.samples,
  Conc,
  sample.time,
  Conc2liters,
  df.Q,
  Q,
  Q.time,
  Q2liters
)

Arguments

df.samples

dataframe with discrete sample results and dates/times

Conc

string column name in df.samples with the concentration results

sample.time

string column name in df.samples with sample dates/times in POSIXct format

Conc2liters

numeric conversion factor that converts the concentrations to a units/liter

df.Q

dataframe with Q and date/time

Q

string name of column in dfQ with Q

Q.time

string name of column in dfQ with date/time in POSIXct format

Q2liters

numeric conversion factor that converts flow to rate per liters

Value

df.load

Examples

WQdata <- WQdata
flowData <- flowData
LoadInstantaneous(df.samples=WQdata, Conc="Total_P",
         sample.time="dateTime", Conc2liters=1, 
         df.Q=flowData, Q="Q", Q.time="pdate", Q2liters=28.3168466)

USGS-R/USGSHydroTools documentation built on April 17, 2023, 8:09 p.m.