Returns a data.frame of course analytics data. Note: if an individual's user_id is specified, the function will return a list.
get_course_analytics_data(course_id, type = "assignments", user_id = NULL)
course_id | A valid Canvas course id |
---|---|
type | One of "assignments", "activity", or "student_summaries" |
user_id | Optional argument to specify type analytics for individual user id |
data frame or list if user_id is specified
#' get_course_analytics_data(course_id = 20) #' get_course_analytics_data(course_id = 17, type = "activity") #' get_course_analytics_data(course_id = 17, type = "student_summaries", user_id = 366)