Presidentti2012CandidateAnswers2Numeric: For Presidentti2012 candidate answers, form numerical rating in [0, 1] for the
answer options (rougly corresponding to conservative-liberal axis)
Description
For Presidentti2012 candidate answers, form numerical
rating in [0, 1] for the answer options (rougly
corresponding to conservative-liberal axis)
Usage
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]