Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSV extract of polls has malformed dates #12

Closed
conorotompkins opened this issue Jul 29, 2020 · 1 comment
Closed

CSV extract of polls has malformed dates #12

conorotompkins opened this issue Jul 29, 2020 · 1 comment

Comments

@conorotompkins
Copy link

The CSV extract of polls on https://projects.economist.com/us-2020-forecast/president contains malformed date values in start.date and end.date (specifically the year).

library(tidyverse)

polls <- read_csv("data/2020 US presidential election polls - all_polls.csv")

polls %>% 
  filter(start.date == "5/17/2002" | end.date %in% c("7/14/20220", "5/19/0220")) %>% 
  select(state, pollster, start.date, end.date)
# A tibble: 3 x 4
  state pollster      start.date end.date  
  <chr> <chr>         <chr>      <chr>     
1 FL    St Pete Polls 7/13/2020  7/14/20220
2 NY    Sinea College 5/17/2002  5/21/2020 
3 CA    SurveyUSA     5/18/2020  5/19/0220 
@elliottmorris
Copy link
Contributor

Thanks and all fixed now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants