Skip to contents

Check types of Moodle Quiz report whether it is Grades or Responses report.

Usage

get_report_type(data)

Arguments

data

A data.frame to test.

Value

Character vector: "Grades" for Moodle Grades Report, "Responses" for Moodle Responses Report, or NA if it's not a Moodle Quiz report

Examples

# Grades Report
get_report_type(grades_ls$Quiz_1)
#> [1] "Grades"
# Responses Report
get_report_type(responses_ls$Quiz_1)
#> [1] "Responses"