SHI: Calculate Simple Hysteresis Index (SHI)

Description Usage Arguments Value Author(s) References Examples

View source: R/SHI.R

Description

This function calculates Simple Hysteresis Index (SHI) following the description from Tsyplenkov et al. (2020)

Usage

1
SHI(dataframe, q, ssc, .warn = TRUE)

Arguments

dataframe

A data set object.

q

numeric, water discharge variable.

ssc

numeric, suspended sediment concentration variable.

.warn

logical, indicating if the warning message should be displayed.

Value

A numeric variable

Author(s)

Matthias Vanmaercke and Anatoly Tsyplenkov

References

Tsyplenkov A, Vanmaercke M, Golosov V, Chalov S. 2020. Suspended sediment budget and intra-event sediment dynamics of a small glaciated mountainous catchment in the Northern Caucasus. Journal of Soils and Sediments 20 (8): 3266–3281 DOI: 10.1007/s11368-020-02633-z

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
library(dplyr)
data(djan)
output_table <- hydro_events(dataframe = djan,
                             q = discharge,
                             datetime = time,
                             window = 21)

output_table %>%
  filter(he == 2) %>%
  SHI(q = discharge, ssc = SS)

loadflux documentation built on Nov. 5, 2021, 5:07 p.m.