This file contains 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
# Based on snippet by @charlie7whiskey https://gist.github.com/cgrilson7/86737d3b07c2a0806f8aaeaaedf2fd7c | |
# Via unofficial NYT api at https://github.com/alex/nyt-2020-election-scraper | |
#updated 11/6 after api change | |
library(tidyverse) | |
library(rvest) | |
library(lubridate) | |
url <- "https://alex.github.io/nyt-2020-election-scraper/battleground-state-changes.html" |
This file contains 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
0x1bFf4fFC1817afB746A5526F1482A53bb5081a51 |