Count hours of deficits

count_def_hours(data_vector, threshold, res)

Arguments

data_vector

Numeric vector (with data in the same unit as the threshold)

threshold

Numeric in the same unit as the data vector

res

Temporal resolution of data in minutes

Value

A single Value (hours of deficits)