GIFTMW: Missing Word Question in GIFT format

Description Usage Arguments Details Value Examples

View source: R/MissingWord.R

Description

This function prints a Missing Word Question in GIFT format.

Usage

1
GIFTMW(qtxt1, qtxt2, anstxt, rightans)

Arguments

qtxt1

First part of the text of the question.

qtxt2

Second part of the text of the question.

anstxt

Vector of short answers.

rightans

Position of the right answer in anstxt.

Details

These functions use the cat() function to print a Missing Word Question in the GIFT format. In this question, the user is asked to select a missing word which should go between 'qtxt1' and 'qtxt2'. Use of the sink() function is adviced to send the ouput to a text file.

Value

No value is returned but some text in printed.

Examples

1
2
3
#Question 1
GIFTMW("With the command ", " we can compute the mean of a vector of values",
   c("mean()", "sd()", "var()"), rightans=1)

RGIFT documentation built on May 29, 2017, 2:51 p.m.