index.freq: Relative/Absolute frequencies w.r.t. user-defined thresholds

View source: R/index.freq.R

index.freqR Documentation

Relative/Absolute frequencies w.r.t. user-defined thresholds

Description

Function to compute the relative/absolute amount of days below/above a predefined threshold.

Usage

index.freq(ts, threshold = 1, condition, freq.type)

Arguments

ts

A vector containing the data

threshold

A float number defining the threshold considered. Default to 1 (for precipitation).

condition

Inequality operator to be applied considering the given threshold. "GT" = greater than the value of threshold, "GE" = greater or equal, "LT" = lower than, "LE" = lower or equal than.

freq.type

A character string indicating if frequecies to be computed are relative ("rel") or absolute (counts) ("abs").

Value

A float number corresponding to the proportion/number of days below/above the defined threshold.

Author(s)

Douglas Maraun, J. Bedia, D. San-Martin, S. Herrera


SantanderMetGroup/R_VALUE documentation built on July 4, 2023, 4:27 a.m.