Presidentti2012ConvertOptionsToNumeric: For Presidentti2012 answers, form numerical rating in [0, 1] for the
answer options (rougly corresponding to conservative-liberal axis)
Description
For Presidentti2012 answers, form numerical rating in [0,
1] for the answer options (rougly corresponding to
conservative-liberal axis)
Usage
Presidentti2012ConvertOptionsToNumeric(df, questions,
type = "rate")
Arguments
df
data.frame giving the merged table of subjects
vs. background information + answers The example script
for obtaining this was posted to Louhos.
http://louhos.wordpress.com/2012/01/06/kenesta-seuraava-presidentti-ennusta-itse-hsn-vaalikonedatan-avull
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
list A list with two data.frames: info (user information)
and answer (user answers). The answer options are rated
within [0, 1]. Each row corresponds to a user in each of
the two data.frames.