GIFTMW: Missing Word Question in GIFT format

View source: R/MissingWord.R

GIFTMWR Documentation

Missing Word Question in GIFT format

Description

This function prints a Missing Word Question in GIFT format.

Usage

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

#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 Nov. 17, 2023, 3:01 p.m.