Skip to contents

This function generates a gradebook for the assignments in a specific course in the Canvas LMS API.

Usage

get_course_gradebook(canvas, course_id)

Arguments

canvas

An object containing the Canvas API key and base URL, obtained through the canvas_authenticate function.

course_id

The ID of the course for which to generate the gradebook.

Value

A data frame containing the gradebook with student in rows (identifiable through canvas_user_id) and assignments in columns (identifiable through assigment names).

Details

The gradebook shown in Canvas is not accessible through the API. Here it is reconstructed using the (visible) assignments and students in the course. It may be useful for performing more advanced grade calculations (like allowing for conditional extra credit) before adjusting assignment grades (see, update_course_grades and update_section_grades).