fraction.within.cons.op.threshold: Fraction of days which are within spells of at least n+1 days

View source: R/cloud_ind_MCH.R

fraction.within.cons.op.thresholdR Documentation

Fraction of days which are within spells of at least n+1 days

Description

This function calculates the fraction of days which are within spells with lengths of at least n+1 days. It uses two functions, select.blocks.gt.length and number.days.op.threshold, which were found in https://github.com/ECA-D/climind/blob/master/R/climdex.r

Usage

fraction.within.cons.op.threshold(cloud.bin, date.factor, n)

Arguments

cloud.bin

Time series of binary data (counted are 1s)

date.factor

Factor to aggregate by.

n

Maximum number of spell lenghts that should be skipped.

Value

for each date.factor the fraction of days which are whithin at least n+1 consecutive days


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