powered by
Mean absolute day-to-day difference in DTR
vdtr(tmax, tmin, data_names = NULL, time.scale = YEAR, na.rm = FALSE)
maximum temperature
minimum temperature
names of each period of time
month, season or year
logical. Should missing values (including NaN) be removed?
vDTR
$$vDTR_j = \frac{ \sum_{ i = 1 } ^ { I } \mid ( TX_{ ij } - TN_{ ij } ) - ( TX_{i-1,j} -TN_{ i - 1,j }) \mid } {I}$$
European Climate Assessment & Dataset. Indices dictionary. https://www.ecad.eu//indicesextremes/indicesdictionary.php
# NOT RUN { data(data_all) vdtr(tmax=data_all$tx, tmin=data_all$tn) # }
Run the code above in your browser using DataLab