Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

csdi

Cold spell duration


Description

Count of days with at least 6 consecutive days when TN < 10th percentile. The 10th percentile is computed based on the time scale selected (month, season or year) not daily as ETCCDI does. If you want to compute daily you can use RClimDex package.

Usage

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

Arguments

data

daily minimum temperature, Celsius

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

days

Examples

data(data_all)
csdi(data=data_all$tn)

ClimInd

Climate Indices

v0.1-3
GPL (>= 3)
Authors
Fergus Reig-Gracia [aut, cre], Sergio M. Vicente-Serrano [aut], Fernando Dominguez-Castro [aut], Joaquin Bedia-Jiménez [ctb]
Initial release
2021-04-09

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.