days.op.threshold: Lengths of strings of TRUE (1 & 0) values Computes which days...

View source: R/indices.R

days.op.thresholdR Documentation

Lengths of strings of TRUE (1 & 0) values Computes which days are above or below the baseline threshold.

Description

This function computes which days are above or below baseline thresholds. It is used to implement the compound indices. It is based on the "percent.days.op.threshold"

Usage

days.op.threshold(temp, dates, jdays, date.factor, threshold.outside.base,
  base.thresholds, base.range, op = "<")

Arguments

temp

Sequence of temperature values.

dates

Sequence of associated dates.

jdays

Sequence of associated days of year.

date.factor

Factor to aggregate data using.

threshold.outside.base

Sequence of thresholds to be used for data outside the base period.

base.thresholds

Data structure containing sets of thresholds to be used inside the base period; see climdexInput-class.

base.range

Date range (type PCICt) of the baseline period.

op

Comparison operator to use.

max.missing.days

Maximum number of NA values per time period.

Value

A vector consisting of the mean fraction of days above or below the supplied set of thresholds.

Note

If date.factor is omitted, daily series will be returned.


ECA-D/climind documentation built on Nov. 26, 2022, 10:20 a.m.