tbl_generate_RAT_choices: Generate RAT choices

View source: R/readiness_assessment_tests.R

tbl_generate_RAT_choicesR Documentation

Generate RAT choices

Description

Generates the actual multiple choice questions in an RAT

Usage

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).

answer_layout_funs

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

random_seed

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


KopfLab/tbltools documentation built on July 30, 2023, 11:16 p.m.