Skip to content

Instantly share code, notes, and snippets.

library(tidyverse)
library(scales)
library(ggthemes)
library(lubridate)
library(zoo)
library(covid19us)
library(datasets)
tsa <- c('NY','CT','NJ')
states <- tibble(state_name = state.name,
library(covid19italy)
library(tidyverse)
library(scales)
library(ggthemes)
library(lubridate)
library(zoo)
update_data()
#get regional data
@randallhelms
randallhelms / campaign_url_examples.R
Created May 26, 2019 09:16
examples of UTM codes built in R
v1 <- campaign_url('https://yoursite.de','facebook','cpc','test_campaign_1')
#"https://yoursite.de/?utm_source=facebook&utm_medium=cpc&utm_campaign=test_campaign_1"
v2 <- campaign_url('https://yoursite.de','facebook','cpc','test_campaign_1','angebot','image_v1')
#"https://yoursite.de/?utm_source=facebook&utm_medium=cpc&utm_campaign=test_campaign_1&utm_term=angebot&utm_content=image_v1"
@randallhelms
randallhelms / carl_cox_sets.R
Created February 12, 2018 21:02
A way to read in multiple text files in R
#load relevant packages
library(dplyr)
library(tidyr)
library(readr)
library(stringr)
library(lubridate)
library(downloader)
#get zip file and unzip it to your new subfolder