Description Usage Arguments Value
View source: R/append_dfe_values.R
After a gamble in the decisions from experience task is ended the data is
sent from the browser to the current r session and is then with this function
appended to the task control list (gameData) which has to be a reactive value
(see reactiveValues
or
https://shiny.rstudio.com/reference/shiny/latest/reactiveValues.html).
1 2 3 4 5 6 7 8 9 10 | appendDfeValues(
ctrlVals,
input,
gameData,
container,
withPracticeGamble = TRUE,
afterPracticePage = "postPractice",
afterGamblePage = "endGame",
afterLastGamblePage = "lastEndGame"
)
|
ctrlVals |
list of reactive values. Controls the flow through the
Experiment. Can be created with |
input |
The input object from a shiny app. |
gameData |
list of reactive values.Sspecifically for the bandit task.
Can be created with |
container |
list. Containing at least two objects named "trial.order"
and "gamle.order". Usually this list is created with
|
withPracticeGamble |
logical. If TRUE it is assumed that a practice gamble was included. The page after that trial will be afterPracticePage. |
afterPracticePage |
string. The name of the page to be shown after the practice trial. Only needs to be specified if withPracticeGamble is set to TRUE. |
afterGamblePage |
string. The name of the page to be shown after the trials up to the second to last trial. |
afterLastGamblePage |
string. The name of the page to be shown after the last trial. |
gameData list of reactive values and change current page value (note: does not have to be assigned when function is called).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.