fr_separate: Hydrograph Separations

Description Usage Arguments Value See Also Examples

Description

This function takes start and end dates of floods and calculates the baseflow fraction during the flood based on a two end member mixing model.

Usage

1
2
fr_separate(.data, dateVar = NULL, timeVar = NULL, dateTimeVar = NULL,
                   tracerVar, fractionVar, starts, ends, hours, ppt, checkOverlap = TRUE)

Arguments

.data

The working dataframe

dateVar

The variable holding date data

timeVar

The variable holding time data

dateTimeVar

The variable holding time data

tracerVar

The variable holding the tracer data for the mixing model

fractionVar

The name of a new variable to hold the results of the separation

starts

Start times of floods

ends

End times of floods

hours

Number of hours to look back as baseflow conditions for the tracerVar

ppt

The value to use for precipitation in mixing model

checkOverlap

Logical value to check if baseflows overlap

Value

A dataframe with a new variable holding baseflow frations for each flood with attributes about which baseflow values/times were used in the separations.

See Also

selectFloods for selecting start and end dates of floods

Examples

1
2
3
4
5
## Not run: 
fr_separate(.data = df, dateTimeVar = datetimeQ, tracerVar = SpC, fractionVar = Xb,
            starts = selected$start, ends = selected$end, hours = 24, ppt = 54, checkOverlap = T)

## End(Not run)

shaughnessyar/floodR documentation built on May 3, 2019, 4:01 p.m.