grade: Grade based on R workspace equivalence

Description Usage Arguments Value See Also Examples

Description

Grade based on R workspace equivalence

Usage

1
grade(assignment, key)

Arguments

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).

Value

Data.frame with the file names and corresponding grades.

See Also

createKey

Examples

 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)

anthonypileggi/gradeR documentation built on May 10, 2019, 12:17 p.m.