category: Create a quiz category

Description Usage Arguments Value Examples

View source: R/category.R

Description

Creates an object of class iRc_category.

Usage

1

Arguments

name

Character string, name of the category.

...

Objects of class iRc_item.

Value

An object of class iRc_category.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
q1 <- ask(
  question=list(text="What is Crichton's nick name for Chiana?"),
  answer=list(html=strong("Pip"))
)
q2 <- ask(
  question=list(text="What is Crichton's nick name for his gun?"),
  answer=list(html=strong("Winona"))
)
q3 <- ask(
  question=list(text="What is a famous quote from Rygel?"),
  answer=list(html=strong("Hail, prince of the obvious!"))
)
q4 <- ask(
  question=list(text="What is the Nebari Resistance fighting against?"),
  answer=list(html=strong("The Establishment"))
)
# now make a category
farscape <- category(name="Farscape", q1, q2, q3, q4)

unDocUMeantIt/iRcotofun documentation built on May 3, 2019, 2:24 p.m.