Update to the newest polls provided by FiveThirtyEight

fivethirtyeight_update(polls = "president_polls")

Arguments

polls

character string describing the race, one of 'president_polls', 'senate_polls', 'house_polls' or 'governor_polls'

Value

tibble of the recent polls

Examples

presidential_polls <- fivethirtyeight_update()
#> Parsed with column specification: #> cols( #> .default = col_character(), #> question_id = col_double(), #> poll_id = col_double(), #> cycle = col_double(), #> pollster_id = col_double(), #> sponsor_ids = col_number(), #> pollster_rating_id = col_double(), #> sample_size = col_double(), #> seat_number = col_double(), #> seat_name = col_logical(), #> sponsor_candidate = col_logical(), #> internal = col_logical(), #> tracking = col_logical(), #> nationwide_batch = col_logical(), #> ranked_choice_reallocated = col_logical(), #> race_id = col_double(), #> candidate_id = col_double(), #> pct = col_double() #> )
#> See spec(...) for full column specifications.
#> Warning: 44 parsing failures. #> row col expected actual file #> 1923 sponsor_candidate 1/0/T/F/TRUE/FALSE Nicole Galloway 'https://projects.fivethirtyeight.com/polls-page/president_polls.csv' #> 1924 sponsor_candidate 1/0/T/F/TRUE/FALSE Nicole Galloway 'https://projects.fivethirtyeight.com/polls-page/president_polls.csv' #> 2585 sponsor_candidate 1/0/T/F/TRUE/FALSE Al Gross 'https://projects.fivethirtyeight.com/polls-page/president_polls.csv' #> 2586 sponsor_candidate 1/0/T/F/TRUE/FALSE Al Gross 'https://projects.fivethirtyeight.com/polls-page/president_polls.csv' #> 2968 sponsor_candidate 1/0/T/F/TRUE/FALSE Raphael Warnock 'https://projects.fivethirtyeight.com/polls-page/president_polls.csv' #> .... ................. .................. ............... ..................................................................... #> See problems(...) for more details.