read_questions: Read Exam Questions

Description Usage Arguments Details Value Author(s) Examples

View source: R/read_questions.R

Description

Reads an excel sheet with exam question of different types (T/F, MC, etc.)

Reads an excel sheet with exam question of different types (T/F, MC, etc.)

Usage

1
2
3

Arguments

file

character, the path/filename of the excel-sheet containing the questions to be read

year

character vector indicating from which years questions should be selected, if empty (NULL) questions from all years are selected.

mock

logical, if TRUE, only mock exam questions are selected (FALSE by default)

topic

character vector, indicating which question topics should be selected ('topic' column), defaults to NULL

Details

The...

The...

Value

a list

a list

Author(s)

Ulrich Matter <umatter@protonmail.com>

Ulrich Matter <umatter@protonmail.com>

Examples

1
2
3
4
5
6
myfile <- "inst/exdata/exam_questions.xlsx"
my_questions <- read_questions(myfile)
head(my_questions)
myfile <- "inst/exdata/exam_questions.xlsx"
my_questions <- read_questions(my_file)
head(my_questions)

umatter/examr documentation built on Oct. 25, 2020, 8:12 a.m.