create_mc: Create a Multiple Choice Quiz

Description Usage Arguments Value Examples

Description

Create a Multiple Choice Quiz

Usage

1
create_mc(ans, qus = length(ans), wts = rep(1, qus), ats = rep(1, qus))

Arguments

ans

The number of answers for each question, can be a single integer, or a vector providing the number of answers for multiple questions

qus

The number of questions in the quiz, not neccesary if a vector is provided for ans

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 test object

Examples

1
2
3
create_mc(4,10)
create_mc(c(2,2,3,3))
create_mc(4,5,1:5,2)

DanNashSoton/GuessR documentation built on May 28, 2019, 1:34 a.m.