This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(tidyverse) | |
library(ggpubr) | |
library(tsibble) | |
library(fable) | |
library(ggpmisc) | |
library(ggrepel) | |
library(scales) | |
sf <- 2 | |
width <- 1200 * sf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(data.table) | |
library(ggplot2) | |
sf <- 2 | |
width <- 900 * sf | |
height <- 450 * sf | |
options(vsc.dev.args = list(width = width, height = height, res = 72 * sf)) | |
# Load data | |
s <- fread( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(data.table) | |
library(ggplot2) | |
sf <- 2 | |
width <- 600 * sf | |
height <- 335 * sf | |
options(vsc.dev.args = list(width = width, height = height, res = 72 * sf)) | |
# All potential vaccine related ICD10 codes | |
elevated_icd10 <- c( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(readr) | |
library(tidyr) | |
library(ggplot2) | |
library(dplyr) | |
library(fable) | |
library(tsibble) | |
sf <- 2 | |
width <- 900 * sf | |
height <- 450 * sf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Require IP argument or environment variable | |
IP="${1:-${IP}}" | |
if [ -z "$IP" ]; then | |
echo "❌ Error: IP is required." | |
echo "Usage: IP=1.2.3.4 ./deploy.sh" | |
echo " or: ./deploy.sh 1.2.3.4" | |
exit 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Download all previously release files | |
library(httr) # Load httr for GET function | |
library(readxl) # Load readxl for reading Excel files | |
read.xls <- function(url) { | |
# Create a temporary file | |
temp_file <- tempfile(fileext = ".xlsx") | |
# Download the file to the temporary location | |
GET(url, write_disk(temp_file, overwrite = TRUE)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(ggplot2) | |
library(readr) | |
library(dplyr) | |
library(stringr) | |
library(scales) | |
library(ggrepel) | |
sf <- 2 | |
width <- 600 * sf | |
height <- 335 * sf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(tidyverse) | |
# Load and preprocess the dataset | |
df <- read_csv("https://www.football-data.co.uk/mmz4281/2425/D2.csv") |> | |
mutate(Date = as.Date(Date, format = "%d/%m/%Y")) |> | |
select(Date, HomeTeam, AwayTeam, FTR) |> | |
arrange(Date) | |
# Ensure unique set of teams per matchday | |
matchday_counter <- 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(readr) | |
library(tidyr) | |
library(ggplot2) | |
library(dplyr) | |
library(fable) | |
library(tsibble) | |
sf <- 2 | |
width <- 900 * sf | |
height <- 450 * sf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(readr) | |
library(dplyr) | |
library(tidyr) | |
df <- read_tsv( | |
paste0( | |
"https://raw.githubusercontent.com/robert-koch-institut/", | |
"GrippeWeb_Daten_des_Wochenberichts/main/", | |
"GrippeWeb_Daten_des_Wochenberichts.tsv" | |
) |
NewerOlder