Learn R Programming

ClimInd (version 0.1-2)

ldp: Longest dry period

Description

Maximum length of consecutive dry days (RR<1)

Usage

ldp(data, data_names = NULL, time.scale = YEAR, na.rm = FALSE)

Arguments

data

precipitation

data_names

names of each period of time

time.scale

month, season or year

na.rm

logical. Should missing values (including NaN) be removed?

Value

longest dry period

References

Klein Tank AMG, Zwiers FW, Zhang X. 2009. Guidelines on analysis of extremes in a changing climate in support of informed decisions for adaptation, climate data and monitoring WCDMP-No 72, WMO-TD No 1500, p 5.

Examples

Run this code
# NOT RUN {
data(data_all)
ldp(data = data_all$rr)
# }

Run the code above in your browser using DataLab