AHI: Calculate Aich's Hysteresis Index

View source: R/AHI.R

AHIR Documentation

Calculate Aich's Hysteresis Index

Description

This function calculates Hysteresis Index proposed by Aich et al. (2014)

Usage

AHI(dataframe, q, ssc, .warn = TRUE)

Arguments

dataframe

data.frame 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 value either NA

References

Aich V, Zimmermann A, Elsenbeer H. 2014. Quantification and interpretation of suspended-sediment discharge hysteresis patterns: How much data do we need? CATENA 122: 120–129 DOI: 10.1016/j.catena.2014.06.020

Examples

library(dplyr)
data(djan)
output_table <- hydro_events(dataframe = djan,
                             q = discharge,
                             datetime = time,
                             window = 21)

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

atsyplenkov/loadflux documentation built on March 10, 2023, 8:18 p.m.