sillyTest: 'list' with a test inspired on Harry Potter books.

View source: R/sillyTest.R

sillyTestR Documentation

list with a test inspired on Harry Potter books.

Description

A list including Q&A inspired on Harry Potter books in order to clarify how to organize inputs for sillyTest function.

Usage

sillyTest

sillyTest(testName, questions, answers, correctAnswers)

Arguments

testName

The name for the test

questions

character vector indicating the questions.

answers

list with the options for each question.

correctAnswers

numeric vector indicating the index for correct answers.

Format

A list with two levels: 1) The first, the questions as a character vector and 2) the second, the posible answers for each question.

Details

Of course, arguments for questions, answers and correct answers must have the same length.

Value

Nothing.

Examples

## Not run: 
sillyTest(testName = "Harry Potter", questions = testExample$questions,
          answers = testExample$answers, correctAnswers = testExample$correctAnswers)

## End(Not run)

LuisLauM/ruisu documentation built on March 26, 2024, 8:23 a.m.