GIFTTF: True-False Question in GIFT format

View source: R/TrueFalse.R

GIFTTFR Documentation

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.

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.

Value

No value is returned but some text in printed.

Examples

#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)




RGIFT documentation built on Nov. 17, 2023, 3:01 p.m.