Presidentti2012CandidateAnswers2Numeric: For Presidentti2012 candidate answers, form numerical rating...

Description Usage Arguments Value Author(s)

Description

For Presidentti2012 candidate answers, form numerical rating in [0, 1] for the answer options (rougly corresponding to conservative-liberal axis)

Usage

1
2
  Presidentti2012CandidateAnswers2Numeric(candidates,
    questions, type = "rate")

Arguments

candidates

candidate information as given by candidates <- GetPresidentti2012(category="candidates", API=API)

questions

questions returned by GetPresidentti2012(category="questions", API=API)

type

return the answer rating as integers ("integer") 0, 1, 2, ... or as rates between [0,1].

Value

matrix A matrix: each row corresponds to a candidate. For each candidate, the answer options (columns) are rated within [0, 1]

Author(s)

Leo Lahti louhos@googlegroups.com


rOpenGov/datavaalit documentation built on May 26, 2019, 7:46 p.m.