Internal functions for curating the data

CreateLD(
  Q,
  Conc,
  date.range,
  samp.unit,
  Ytype,
  Qflush,
  Reg = list(type = "none", rainfall = NULL, date = NULL)
)

CreateQregDataset(Q, samp.unit, Qflush, Ytype, Reg)

PlotCQ(Conc, Q)

CreateCQDataset(Conc, Qreg, startdate)

AssignVal(x, y)

CreateRegDate(Q, samp.unit, Ytype)

CreateLoadVars(Q, csQ, Qflush, samp.unit, Date, Y)

Arguments

Q

Flow data

Conc

Concentration data

date.range

Date range

samp.unit

sampling unit

Ytype

Year type. One of water year ("WY" or "WY2") or financial year ("FY")

Qflush

Quantile for "first flush"

Reg

Parameters for regularisation (type, rainfall, date)

Qreg

Regularised flow data

startdate

Starting date

x

vector of x-values

y

vector of y-values

csQ

Cumulative sum of flow

Date

Date vector

Y

Year type