Counting the events below threshold values on a yearly basis

yearly_crit_Events(
  dataFrame,
  res = 15,
  seperating_hours = 5 * 24,
  deficiency_hours = 0.25,
  thresholds = 1.5,
  max_missing = 25,
  use_recovery_value = FALSE,
  recovery_value = NULL
)

Arguments

dataFrame

MiSa Dataframe: with columne "d": oxygen data, "year": year

res

Temporal resolution of oxygen data in minutes

seperating_hours

TODO: describe (also: should be "separating_hours" with "a", not "e")

deficiency_hours

TODO: describe

thresholds

Oxygen threshold values used for the assessment in mg/L

max_missing

The maximal allowed percent of missing oxygen data. If NA Values exceed this number, hours below thresholds are set to NA

use_recovery_value

TODO: describe

recovery_value

TODO: describe

Value

Data frane with rows per year and columns per threshold as well es for missing data