rankflow: Calculates daily averages and ranks flow

Description Usage Arguments Value See Also Examples

Description

Calculates daily averages and ranks flow

Usage

1
2
rankflow(data, pol, names = list(date = "date"), pol.date, sort
                 = TRUE, method = "linear", mean = base::mean)

Arguments

data

Data frame with flow (and optionally with pollutant) data

pol

Data frame with pollutant data if not a part of data

names

List with column names in data having date and Q. Defaults to list(Q = "Q", date="date")

pol.date

Column name in pol with dates. Default to names$date. Ignored if pol is missing

sort

Sorts output by exceedance (necessary for correct plot)

method

How to rank data. Choices are : "linear", "pr", "ecdf". "linear" uses rank. For "pr" see http://en.wikipedia.org/wiki/Percentile_rank

mean

How to average pollutant data. Defaults to arithmetic average. Can be function(x) exp(mean(log(x))) for geometric mean

Value

List with the following components

exc

Exceedance level 0-100

names$Q

Daily flow data

...

Daily averages of everything else passed in data or pol

See Also

fdplot, tmdl

Examples

1
2
3
4
5
6
data(flow)
data(pol)
ranked <- rankflow(flow, pol, names = list(date="Date", Q="cfs"))
names(ranked)

ldplot(ranked, names=list(pol="TSS", Q="cfs"), WQS = 5)

tmdl documentation built on May 2, 2019, 6:07 p.m.

Related to rankflow in tmdl...