Description Usage Arguments Value See Also Examples
View source: R/trump_approval_polls_538.R
Returns a data.frame of individual polls aggregated by FiveThirtyEight
1 | trump_approval_polls_538(subgroup = "All polls")
|
subgroup |
Filters the dataset to the polled population, either 'Adults', 'All polls', or 'Voters'. Defaults to 'All polls' |
a data.frame of individual polls aggregated by FiveThirtyEight
Their dataset at https://projects.fivethirtyeight.com/trump-approval-data/approval_polllist.csv and interactive at https://projects.fivethirtyeight.com/trump-approval-ratings/
1 2 3 4 5 | # get all polls
polls <- trump_approval_polls_538(subgroup='Adults')
# returned as a data.frame
polls
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.