Learn R Programming

climatrends (version 0.5)

cumdrought: Cumulative sum of dry days

Description

Returns a vector with the cumulative sum of the maximum length of dry spell (MLDS)

Usage

cumdrought(x)

Value

a vector with the cumulative sum of MLDS

Arguments

x

a numeric vector

Examples

Run this code

rain <- c(0,0.2,0.4,0.1,0.4,5.1,1.5,1.6,0.1,0,7,6,4,6,0.1,1.2,0.5,0)

cumdrought(rain)

Run the code above in your browser using DataLab