Description Usage Arguments Value See Also Examples
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.
1 2 | fr_separate(.data, dateVar = NULL, timeVar = NULL, dateTimeVar = NULL,
tracerVar, fractionVar, starts, ends, hours, ppt, checkOverlap = TRUE)
|
.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 |
A dataframe with a new variable holding baseflow frations for each flood with attributes about which baseflow values/times were used in the separations.
selectFloods
for selecting start and end dates of floods
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.