GIFTMW | R Documentation |
This function prints a Missing Word Question in GIFT format.
GIFTMW(qtxt1, qtxt2, anstxt, rightans)
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. |
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.
No value is returned but some text in printed.
#Question 1
GIFTMW("With the command ", " we can compute the mean of a vector of values",
c("mean()", "sd()", "var()"), rightans=1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.