Learn R Programming

politicaldata (version 0.1.3)

trump_approval_polls_538: Download FiveThirtyEight's dataset of Donald Trump's job approval polling

Description

Returns a data.frame of individual polls aggregated by FiveThirtyEight

Usage

trump_approval_polls_538(subgroup = "All polls")

Arguments

subgroup

Filters the dataset to the polled population, either 'Adults', 'All polls', or 'Voters'. Defaults to 'All polls'

Value

a data.frame of individual polls aggregated by FiveThirtyEight

See Also

Their dataset at https://projects.fivethirtyeight.com/trump-approval-data/approval_polllist.csv and interactive at https://projects.fivethirtyeight.com/trump-approval-ratings/

Examples

Run this code
# NOT RUN {
# }
# NOT RUN {
 # get all polls
 polls <- trump_approval_polls_538(subgroup='Adults')

 # returned as a data.frame
 polls

# }
# NOT RUN {
# }

Run the code above in your browser using DataLab