multiOptsDfdPage: Call Appropriate Create Dfd Page Function

Description Usage Arguments Value

View source: R/multi_opts_dfd_page.R

Description

Depending on the number of options a trial has, different create page functions are needed. This function takes care of this such that independend of the number of options only one function has to be called to set up the html logic.

Usage

1
multiOptsDfdPage(ctrlVals, container, ...)

Arguments

ctrlVals

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

container

list. Output of createDfdList containing the gambles to be displayed in a trial.

...

Further arguments passed to the nOptDfdPage function called (e.g. twoOptDfdPage).

Value

An html page that can be displayed by the shiny app.


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