add_tf: Add True/False Questions to an Existing Quiz

Description Usage Arguments Value Examples

View source: R/Add or Edit Questions.R

Description

Add True/False Questions to an Existing Quiz

Usage

1
add_tf(test, qus, wts = rep(1, qus), ats = rep(1, qus))

Arguments

test

The test object that you would like to add questions too

qus

The number of questions you would like to add

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. For any value greater than 1 the answer will be correct every time.

Value

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

Examples

1
2
add_tf(test1,10)
add_tf(test1,5,1:5)

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