Document
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
library(opentriviadb) if (curl::has_internet()){ dat <- get_questions(2, "General Knowledge", "medium", "boolean") }