dropdown | R Documentation |
Create YAML string for InlineChoice object (dropdown list)
dropdown(
choices,
solution_index = 1,
points = 1,
shuffle = TRUE,
response_identifier = NULL
)
choices |
A numeric or character vector; contains values of possible answers. If you use a named vector, the names will be used as identifiers. |
solution_index |
An integer value, optional; the number of right answer
in the |
points |
A numeric value, optional; the number of points for this gap.
Default is |
shuffle |
A boolean, optional; is responsible to randomize the order in
which the choices are initially presented to the candidate. Default is
|
response_identifier |
A character string, optional; an identifier for the answer. |
A character string mapped as yaml.
gap_text()
, gap_numeric()
, mdlist()
dropdown(c("Option A", "Option B"), response_identifier = "task_dd_list")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.