knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
The goal of degreedays is to download heating degree days from weather stations throughout Germany from DWD Climate Data Center (CDC) and provide some convenience functions.
Data set description:
Recent monthly degree days according to VDI 3807 for Germany, quality control not completed yet, version v19.3, last accessed: 2021-12-02.
More information may be found on the opendata-server.
You can install the development version of degreedays from GitHub.
# install.packages("devtools") devtools::install_github("BirgerNi/degreedays")
You can download the whole data set with download_dwd_data
.
library(degreedays) df <- download_dwd_data() df
library(magrittr) library(degreedays) df <- readr::read_rds(file = "data_test/dwd.rds") df
You may want to convert data to tsibble and keep only complete or almost complete data sets.
tidy_hdd(df, threshold = 0.95)
Calculate the monthly mean for a given period with calc_monthly_mean()
.
df %>% tidy_hdd(threshold = 0.95) %>% calc_monthly_mean(from = 2006, to = 2020)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.