Difference between revisions of "Great game of Turkey"
From Testiwiki
m |
|||
Line 1: | Line 1: | ||
[[Category:GovLab]] | [[Category:GovLab]] | ||
+ | <rcode label="See the question of the day" embed=1> | ||
+ | # This code is Op_en7421# on page [[Great game of Turkey]] | ||
+ | |||
+ | library(OpasnetUtils) | ||
+ | |||
+ | today <- Sys.Date() | ||
+ | ques <- opbase.data("Op_en7421.questions") | ||
+ | ques$Date <- as.Date(ques$Date) | ||
+ | ques <- ques[ques$Date == today ,]] | ||
+ | |||
+ | oprint(ques) | ||
+ | |||
+ | </rcode> | ||
+ | |||
<rcode name="choices" label="Choose policy" embed=1 variables=" | <rcode name="choices" label="Choose policy" embed=1 variables=" | ||
− | name:option|description: | + | name:option|description:Check above the question of the day and decide which option you would choose.|type:selection|options: |
− | ' | + | 'Option 1';Option 1; |
− | ' | + | 'Option 2';Option 2; |
− | ' | + | 'Option 3';Option 3; |
+ | 'Option 4';Option 4 | ||
"> | "> | ||
# This is code Op_en7421/choices on page [[Great game of Turkey]] | # This is code Op_en7421/choices on page [[Great game of Turkey]] | ||
Line 43: | Line 58: | ||
== Rationale == | == Rationale == | ||
− | <t2b name="Questions" index="Question" obs="Option" unit="-"> | + | <t2b name="Questions" index="Date|Question" obs="Option" unit="-"> |
− | Should the scarf ban in the universities be abandoned?|Yes | + | 2016-01-16|Should the scarf ban in the universities be abandoned?|Yes |
− | Should the scarf ban in the universities be abandoned?|Partly | + | 2016-01-16|Should the scarf ban in the universities be abandoned?|Partly |
− | Should the scarf ban in the universities be abandoned?|No | + | 2016-01-16|Should the scarf ban in the universities be abandoned?|No |
+ | 2016-01-17|Should the military budget be increased?|Yes | ||
+ | 2016-01-17|Should the military budget be increased?|No, keep the same | ||
+ | 2016-01-17|Should the military budget be increased?|No, reduce | ||
+ | 2016-01-17|Should the education budget be increased?|Yes | ||
+ | 2016-01-17|Should the education budget be increased?|No, keep the same | ||
+ | 2016-01-17|Should the education budget be increased?|No, reduce | ||
</t2b> | </t2b> | ||
Line 130: | Line 151: | ||
} else { | } else { | ||
cat("Choose your score first.\n") | cat("Choose your score first.\n") | ||
+ | } | ||
+ | </rcode> | ||
+ | |||
+ | <rcode label="Show today's questions and options" embed=1> | ||
+ | # This is code Op_en7421/ on page [[Great game of Turkey]] | ||
+ | |||
+ | library(OpasnetUtils) | ||
+ | |||
+ | ques | ||
+ | <rcode name="questionvote" label="Vote for the day's question" embed=0 variables=" | ||
+ | name:question|description:Give the number of the question you want for today. | ||
+ | "> | ||
+ | # This is code Op_en7421/questionvote on page [[Great game of Turkey]] | ||
+ | |||
+ | library(OpasnetUtils) | ||
+ | |||
+ | dat <- data.frame( | ||
+ | Date = Sys.Date(), | ||
+ | User = wiki_username, | ||
+ | Result = question # Question | ||
+ | ) | ||
+ | |||
+ | if(!is.null(question)) { | ||
+ | opbase.upload( | ||
+ | dat, | ||
+ | ident = "Op_en7421", | ||
+ | name = "Great game of Turkey", | ||
+ | subset = "Question vote", | ||
+ | act_type = "replace", | ||
+ | language = "eng", | ||
+ | who = wiki_username | ||
+ | ) | ||
+ | oprint(dat) | ||
+ | cat("Your question vote was successfully saved.\n") | ||
+ | } else { | ||
+ | cat("Choose your question first.\n") | ||
} | } | ||
</rcode> | </rcode> | ||
Line 135: | Line 192: | ||
{| {{prettytable}} | {| {{prettytable}} | ||
|+'''Structures of the tables. | |+'''Structures of the tables. | ||
− | ! Questions || Choices || Happiness || Progress || | + | ! Questions || Choices || Happiness || Progress || Question vote || Option vote || User |
|---- | |---- | ||
| | | |
Revision as of 03:17, 16 January 2016
Question
What is a good game to crowdsource citizen priorities about daily political decisions in such a way that
- it can be done using a mobile app,
- it characterises happiness of citizen groups of the decisions,
- it characterises progress of important societal values,
- it enables crowdsourcing the actual questions and options asked?
Answer
- See the top of the page for the main questionnaire of the game.
Rationale
You have error(s) in your data:Number of indices and result cells does not match
Obs | Date|Question | Option | |
---|---|---|---|
1 | 2016-01-16 | Should the scarf ban in the universities be abandoned? | Yes |
2 | 2016-01-16 | Should the scarf ban in the universities be abandoned? | Partly |
3 | 2016-01-16 | Should the scarf ban in the universities be abandoned? | No |
4 | 2016-01-17 | Should the military budget be increased? | Yes |
5 | 2016-01-17 | Should the military budget be increased? | No, keep the same |
6 | 2016-01-17 | Should the military budget be increased? | No, reduce |
7 | 2016-01-17 | Should the education budget be increased? | Yes |
8 | 2016-01-17 | Should the education budget be increased? | No, keep the same |
9 | 2016-01-17 | Should the education budget be increased? | No, reduce |
Questions | Choices | Happiness | Progress | Question vote | Option vote | User |
---|---|---|---|---|---|---|
|
|
|
|
|
|
|
Groups for Turkey | Progress categories |
---|---|
|
|
See also
This page is a assessment.
The page identifier is Op_en7421 |
---|
Moderator:Jouni (see all) |
Give your opinion to the peer rating of the content of this page. |
Upload data
|
Keywords
References