Learn R Programming

rqti (version 1.0.0)

extract_results: Create data frame with test results

Description

The function extract_results() takes Opal zip archive "Export results" or xml file and creates two kinds of data frames (according to parameter 'level'), see the 'Details' section.

Usage

extract_results(file, level = "task", hide_filename = TRUE)

Value

A dataframe with attribues of the candidates outcomes and result variables.

Arguments

file

A string with a path of the xml test result file.

level

A string with two possible values: task and item.

hide_filename

A boolean value, TRUE to hide original file names by default.

Examples

Run this code
file <- system.file("test_results.zip", package='rqti')
df <- extract_results(file, level = "item")

Run the code above in your browser using DataLab