This small tutorial was developed for a talk / workshop that Phil Bowsher gave at the EPA.
library(tidyverse) terrorists <- googlesheets::gs_url("https://docs.google.com/spreadsheets/d/1LYQakIwGosibDHJKJqZgjM39qpSlp_gFG29zJ6paDAI/edit#gid=956062857") %>% googlesheets::gs_read() terrorist_by_race ## # A tibble: 7 x 6 ## race n fatalities injured total_victims `%` ## <chr> <int> <dbl> <dbl> <dbl> <dbl> ## 1 white 63 554 1067 1621 69.
Over the past few years we have seen Google Trends becoming quite ubiquitous in politics.
As the primaries approach, I am experiencing a mix of angst, FOMO, and excitement.
trendyy is a package for querying Google Trends. It is build around Philippe Massicotte’s package gtrendsR which accesses this data wonderfully.