For Pollster methods that return results in pages (those with a cursor
argument), iterate over multiple pages.
pollster_iter(.f, ..., cursor = NULL, .max_pages = 1, .debug = FALSE)pollster_charts_iter(cursor = NULL, tags = NULL, election_date = NULL,
.max_pages = 1, ...)
pollster_questions_iter(cursor = NULL, tags = NULL, election_date = NULL,
.max_pages = 1, ...)
pollster_polls_iter(cursor = NULL, tags = NULL, question = NULL,
sort = c("created_at", "updated_at"), .max_pages = 1, ...)
A pollster function for an endpoint that uses a cursor
.
Arguments for .f
Special string used to handle pagination.
The maximum number of pages to fetch.
If TRUE
prints the url and cursor number while fetching the pages.
Character vector of tag names.
A date object or a string in "YYYY-MM-DD" format for the election date.
Question slug.
Sort order of polls.
A list of the results.
pollster_charts_iter
: Return a list of charts. See hrefhttps://app.swaggerhub.com/swagger-ui/#!/default/get_chartsAPI Docs. This is the paginated version of pollster_charts
.
pollster_questions_iter
: Get a question. This is the paginated form of pollster_questions
.
pollster_polls_iter
: Get polls. This function is the paginated version of pollster_polls
.