Learn R Programming

rqti (version 1.0.0)

mdlist: Create a markdown list for answer options

Description

Create a markdown list for answer options

Usage

mdlist(vect, solutions = NULL, gaps = NULL)

Value

A markdown list.

Arguments

vect

A string or numeric vector of answer options for single/multiple choice task.

solutions

An integer value, optional; indexes of right answer options in vect.

gaps

numeric or string vector, optional; provides primitive gap description if there is a need to build a list of gaps.

See Also

gap_text(), gap_numeric(), dropdown()

Examples

Run this code
#list for multiple choice task
mdlist(c("A", "B", "C"), c(2, 3))
# it returns:
#- A
#- *B*
#- *C*
#list of gaps
mdlist(c("A", "B", "C"), c(2, 3), c(1, 2, 3))
# it returns:
#- A 1
#- *B* 2
#- *C* 3

Run the code above in your browser using DataLab