Client for the HuffPost Pollster API

Client for the HuffPost Pollster API, which provides access to U.S. polls on elections and political opinion.


News

CHANGES IN 1.4.0

  • Renamed functions to start with pollster_ since I kept misstyping them. However, the old function names beginnning with pollstr_ still work.
  • Renamed the classes returned by pollster functions to start with pollster_.
  • Added function pollster_chart_tbl which returns all polls related to a chart.
  • Added function pollster_house_effects which returns the pollster house effects for a chart.
  • Pollster API changes: deprecated topic argument in pollstr_polls (#11); added question argument to pollstr_polls (#12)
  • Edited and rewrote much of the vignette. The new example uses the 2016 General Election between Clinton and Trump.
  • Miscellaneous non-user facing rewrites to code to make it more robust.

CHANGES IN 1.3.0

  • Add page and max_pages arguments to pollster_charts function since the charts method in the API now takes a page argument. #10

CHANGES IN 1.2.2

  • Add Drew Linzer as original author
  • Bugfix: Removes polls where questions are incomplete so as not to cause errors. #8 (Thanks @olliemcdonald)

bbc1acc768251500664f7fe255b1dbc99d491d33

CHANGES IN 1.2.1

  • Bugfix: fix R CMD check notes due to change in how it handles non-base default packages: http://developer.r-project.org/blosxom.cgi/R-devel/2015/06/29#n2015-06-29

CHANGES IN 1.2.0

  • Add showall argument to pollstr_charts and pollstr_polls

CHANGES IN 1.1.1

  • Bugfix: ensure that character vectors do not get converted to factors
  • Added section in documentation on errors in functions

CHANGES IN 1.1.0

  • Bugfix: Update to new API changes in polls.
  • Move testthat tests to inst

CHANGES IN 1.0.2

  • Bugfix: fix test failures due to API change.
  • Remove tests brittle to API changes so fewer CRAN check failures

CHANGES IN 1.0.1

  • Bugfix: did not convert some election date fields

CHANGES IN 1.0.0

  • submit to CRAN

CHANGES IN 0.2.0

Merge with http://github.com/jrnold/pollster. This is a complete rewrite of the client.

  • getchart replaced with pollstr_charts. Returns class pollstr_charts.
  • getchart replaced with pollstr_chart. Returns class pollstr_chart.
  • getpolls replaced with pollstr_polls. Returns class pollstr_polls.
  • xml API access no longer available.

CHANGES IN 0.1

  • Initial package release

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("pollstR")

2.0.0 by Jeffrey B. Arnold, 2 months ago


https://github.com/rOpenGov/pollstR


Report a bug at https://github.com/rOpenGov/pollstR/issues


Browse source code at https://github.com/cran/pollstR


Authors: Jeffrey B. Arnold [aut, cre], Thomas J. Leeper [aut], Drew Linzer [aut]


Documentation:   PDF Manual  


Task views:


GPL-2 license


Imports httr, lubridate, purrr, stringr

Suggests jsonlite, knitr, readr, rmarkdown, tidyverse, xml2


See at CRAN