# NOT RUN {
eList <- Choptank_eList
year1 <- 1985
year2 <- 2010
# }
# NOT RUN {
# Automatic calculations based on windowSide=7
# four possible ways to do generalized flow normalization:
#Option 1: Use all years for flow normalization.
pairOut_1 <- runPairs(eList, year1, year2, windowSide = 0)
# Option 2: Use different windows for flow normalization for year1 versus year2
# In each case it is a 15 year window (15 = 1 + 2*7)
pairOut_2 <- runPairs(eList, year1, year2, windowSide = 7)
# Option 3: Flow normalization is based on splitting the flow record at 1990-09-30
# But year1 uses all flow data from before the break,
# year2 uses all flow data after the break
pairOut_3 <- runPairs(eList, year1, year2,
windowSide = 0, flowBreak = TRUE,
Q1EndDate = "1990-09-30")
# Option 4: Flow normalization is based on splitting the flow record at 1990-09-30
# but year1 uses a 15 year window before the break
# year2 uses a 15 year window after the break
pairOut_4 <- runPairs(eList, year1, year2,
windowSide = 7, flowBreak = TRUE,
Q1EndDate = "1990-09-30")
# }
Run the code above in your browser using DataLab