mdl_grades | R Documentation |
Returns a reference to the (cached) grades table, with the most relevant columns selected.
mdl_grades(con = mdl_get_connection(), tbl_prefix = "mdl_")
con |
database connection object |
tbl_prefix |
table prefix |
A dbplyr reference object
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.