RGIFT (version 0.1-5)

GIFTTF: True-False Question in GIFT format

Description

This function prints a True-False Question in GIFT format.

Usage

GIFTTF(qtxt, ans)

Arguments

qtxt
Text of the question.
ans
Either TRUE or FALSE depending on wether the question is true or false.

Value

No value is returned but some text in printed.

Details

These functions use the cat() function to print a True-False Question in the GIFT format. In this question, the user is asked to select whether the statement in the question is true or false. Use of the sink() function is adviced to send the ouput to a text file.

Examples

Run this code
#Question 1
GIFTTF("The mean of 1, 2, and 3 is 3?", TRUE)

#Question 2
GIFTTF("The command to compute the mean is sd()", FALSE)



Run the code above in your browser using DataCamp Workspace