appendDfdValues: Append Input from Decisions from Description Task to Task...

Description Usage Arguments Value

View source: R/append_dfd_values.R

Description

After a gamble in the decisions from describtion task is ended the data is 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).

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
appendDfdValues(
  ctrlVals,
  input,
  gameData,
  container,
  withPracticeGamble = TRUE,
  afterPracticePage = "postPractice",
  afterGamblePage = "endGame",
  afterLastGamblePage = "lastEndGame"
)

Arguments

ctrlVals

list of reactive values. Controls the flow through the Experiment. Can be created with createCtrlList.

input

The input object from a shiny app.

gameData

list of reactive values. Specifically for the bandit task. Can be created with createTaskCtrlList.

container

list. Containing at least two objects named "trial.order" and "gamle.order". Usually this list is created with createDfdList.

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.

Value

changed gameData list of reactive values and change current page value (note: does not have to be assigned when function is called).


mdsteiner/ShinyPsych documentation built on Feb. 12, 2022, 2:09 p.m.