tbl_generate_RAT_choices: Generate RAT choices

Description Usage Arguments

View source: R/readiness_assessment_tests.R

Description

Generates the actual multiple choice questions in an RAT

Usage

1
2
3
tbl_generate_RAT_choices(rat, answer_layout = "vertical",
  answer_layout_column = NULL,
  answer_layout_funs = tbl_default_RAT_layouts(), random_seed = random())

Arguments

rat

Readiness Assessment Test object

answer_layout

how to arrange the answers, layouts supported by default are "vertical" and "horizontal" (recommended for image answers). The layout can be overwritten for individual questions by setting the answer_layout_column parameter. Custom answer layouts can be provided using the answer_layout_funcs parameter.

answer_layout_column

set this parameter to a column name in the questions data frame that has a different layout name for questions that are indended to deviate from the default layout (answer_layout). All layouts must be defined in the answer_layout_funs ("vertical" and "horizontal" by default).

random_seed

can overwrite with a fixed value (e.g. random_seed=42) to get a reproducible "random" order of the answer options

answer_layout_funcs

Specify custom answer layouts by providing layout functions that differ from the default. See tbl_default_RAT_layouts for details on how these work.


KopfLab/tbltools documentation built on March 19, 2018, 9:14 a.m.