Presidentti2012ConvertOptionsToNumeric: For Presidentti2012 answers, form numerical rating in [0, 1]...

Description Usage Arguments Value Author(s)

Description

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

Usage

1
2

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-avulla/

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.

Author(s)

Leo Lahti sorvi-commits@lists.r-forge.r-project.org


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