mdlist {rqti} | R Documentation |
Create a markdown list for answer options
Description
Create a markdown list for answer options
Usage
mdlist(vect, solutions = NULL, gaps = NULL)
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 |
gaps |
numeric or string vector, optional; provides primitive gap description if there is a need to build a list of gaps. |
Value
A markdown list.
See Also
gap_text()
, gap_numeric()
, dropdown()
Examples
#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 <gap>1</gap>
#- *B* <gap>2</gap>
#- *C* <gap>3</gap>
[Package rqti version 0.3.0 Index]