Learn R Programming

sorvi (version 0.4.05)

GetPresidentti2012: Load Presidentti2012 data

Description

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

Usage

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