Learn R Programming

ClimInd (version 0.1-2)

hd17: Heating degree days

Description

accumulated degree when TG is below 17 Celsius

Usage

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

Arguments

data

mean temperature

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

HD17

Formula

$$HD17_j = \sum_{j-1}^{I} (17 ^ oC - TG_ij)$$

References

Quayle, R. G., & Diaz, H. F. (1980). Heating degree day data applied to residential heating energy consumption. Journal of Applied Meteorology, 19(3), 241-246. https://doi.org/10.1175/1520-0450(1980)019<0241:HDDDAT>2.0.CO;2

Examples

Run this code
# NOT RUN {
data(data_all)
hd17(data=data_all$tg)
# }

Run the code above in your browser using DataLab