| ck_cooling_degree_days | R Documentation |
Sum of (Tavg - base) for all days where daily average temperature is
above the base temperature (default 18 degrees C).
ck_cooling_degree_days(tavg, dates, base = 18, period = "annual")
tavg |
Numeric vector of daily average temperatures (degrees C). |
dates |
Date vector of the same length as |
base |
Numeric. Base temperature in degrees C (default 18). |
period |
Character. Aggregation period: |
A data frame with columns period, value, index, and unit.
dates <- as.Date("2024-07-01") + 0:9
tavg <- c(25, 30, 22, 20, 28, 19, 32, 17, 35, 27)
ck_cooling_degree_days(tavg, dates)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.