mdl_grades {moodleR} | R Documentation |
Get Grades
Description
Returns a reference to the (cached) grades table, with the most relevant columns selected.
Usage
mdl_grades(con = mdl_get_connection(), tbl_prefix = "mdl_")
Arguments
con |
database connection object |
tbl_prefix |
table prefix |
Value
A dbplyr reference object
Examples
## Not run:
# Get the course grades for courseid 52
course_grades <- mdl_grades() %>%
filter(courseid == 52, item_type == "course") %>%
collect()
# Get the other grades items:
grades_items_grades <- mdl_grades() %>%
filter(courseid == 52, item_type != "course") %>%
collect()
## End(Not run)
[Package moodleR version 1.0.1 Index]