Description Usage Arguments Value See Also Examples
Grade based on R workspace equivalence
1 | grade(assignment, key)
|
assignment |
Full path to assignment (.Rdata) (character). Can be a vector. |
key |
Full path to key (.Rdata) (character). |
grade_for_completion |
Should grading be based on completion or accuracy (default = FALSE). |
Data.frame with the file names and corresponding grades.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ## Not run:
# Answer key
my_key <- file.path(getwd(), "Lesson1_KEY.Rdata")
# Student assignments
student_names <- c("Anthony", "Shannon", "Avery")
students <- file.path(getwd(), paste0("Lesson1_", student_names, ".Rdata"))
# Grade all students for completion
grade(students, my_key, TRUE)
# Grade all students for accuracy
grade(students, my_key)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.