powered by
Document
get_questions( number = 10, category, difficulty = c("any", "easy", "medium", "hard"), type = c("any", "multiple", "boolean") )
Number of questions to return. Max of 50.
Category of questions. Leave blank for random categories.
Difficulty of questions.
Multiple choice or true/false questions.
Dataframe of questions and answers
# NOT RUN { library(opentriviadb) dat <- get_questions(2, "General Knowledge", "medium", "boolean") # }
Run the code above in your browser using DataLab