Description Usage Arguments Value Examples
View source: R/get_questions.R
Document
1 2 3 4 5 6 | get_questions(
number = 10,
category,
difficulty = c("any", "easy", "medium", "hard"),
type = c("any", "multiple", "boolean")
)
|
number |
Number of questions to return. Max of 50. |
category |
Category of questions. Leave blank for random categories. |
difficulty |
Difficulty of questions. |
type |
Multiple choice or true/false questions. |
Dataframe of questions and answers
1 2 3 4 | library(opentriviadb)
if (curl::has_internet()){
dat <- get_questions(2, "General Knowledge", "medium", "boolean")
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.