add_maq: Add Multiple Choice Questions requiring multiple answers to...

Description Usage Arguments Value Examples

View source: R/Add or Edit Questions.R

Description

Add Multiple Choice Questions requiring multiple answers to an Existing Quiz

Usage

1
2
add_maq(test, ans, qus, cor = rep(1, qus), wts = rep(1, qus), ats = rep(1,
  qus))

Arguments

test

The test object that you would like to add questions too

ans

The number of answers for each new question

qus

The number of questions to be added to the quiz

cor

The number of answers that must be given, for questions where, for example, 2 of 4 answers are correct.

wts

The weighting score for each question, can be provided as a single integer, or a vector with number of elements equal to qus

ats

The number of attempts the test taker is allowed to answer the question, can be provided as a single integer, or a vector with number of elements equal to qus.

Value

A new test object, with the new questions appended onto the end

Examples

1
2
3
add_maq(test1,4,10,2)
add_maq(test1,c(4,4,5,5),3)
add_maq(test1,4,5,1:5,3,2)

DanNashSoton/GuessR documentation built on May 29, 2018, 10:10 a.m.