GetPresidentti2012: Load Presidentti2012 data

Description Usage Arguments Value Author(s)

View source: R/elections.R

Description

Load data from Presidentti2012 vaalikone Note! You need a personal API key to get the data!

Usage

1
2
3
  GetPresidentti2012(category = c("questions", "candidates", "useranswers"),
    API, ID = NULL, filter = NULL, page = 1,
    per_page = 500, show_total = "true")

Arguments

category

Data category ("questions", "candidates", "useranswers")

API

Personal api key, required

ID

id for the query, optional

filter

filter for the query, required for 'useranswers'-category. ("question", "timerange", "topcandidate")

page

Pagenumber of results to get, optional

per_page

Number of answers to get (500-10000), optional

show_total

Show data information, optional

Value

res List of data

Author(s)

Juuso Parkkinen sorvi-commits@lists.r-forge.r-project.org


sorvi documentation built on May 2, 2019, 6:16 p.m.