flowWeightedAvgAnnConc: Calculate the flow-weighted average annual concentration.

Description Usage Arguments Value See Also Examples

View source: R/aggregations.R

Description

Given mass and flow at the monthly basis, the flow-weighted average annual concentration is returned. Mass and flow should be monthly data and should be for only a single trace, or for one year of one trace. Expect flow to be in acre-ft/month and mass to be in tons. Return value will be in mg/L

Usage

1

Arguments

mass

A vector of one trace worth of data, or one year of one trace. Units should be in tons.

flow

A vector of one trace worth of data, or one year of one trace. Units should be in acre-ft/month.

Value

A vector of yearly data of the flow-weighted average annual concentration. Units will be mg/L.

See Also

rdfSlotToMatrix

Examples

1
2
3
4
5
6
## Not run: 
flow <- rdfSlotToMatrix(rdf,'Powell.Outflow')
mass <- rdfSlotToMatrix(rdf,'Powell.Outflow Salt Mass')
fwaacT1 <- flowWeightedAvgAnnConc(mass[,1], flow[,1]) # repeat for other traces.

## End(Not run)

rabutler/RWDataPlot documentation built on June 6, 2017, 4:27 p.m.