grade.set {grade} | R Documentation |
Grade Sets
Description
Checks a the set (vector in R) studentans
against
correctans
. grade.orderedset
enforces order,
grade.set
does not.
Usage
grade.set(correctans, studentans, tolerance=0.01, useeval=TRUE,
usena=FALSE, useinf=FALSE, quiet=TRUE)
grade.orderedset(correctans, studentans, tolerance=0.01, useeval=TRUE,
usena=FALSE, useinf=FALSE, quiet=TRUE)
Arguments
correctans |
a vector of type |
studentans |
a vector of type |
tolerance |
a |
useeval |
|
usena |
|
useinf |
|
quiet |
|
Value
TRUE
if the sets match. FALSE
otherwise.
Note
The grade
main page contains a discussion of the
common parameters correctans, studentans, useeval, usena,
useinf, quiet
.
See Also
Examples
grade.set(c(1,2), "[1,2]") # TRUE
grade.orderedset(c(1,2), "[1,2]") # TRUE
grade.set(c(2,1), "[1,2]") # TRUE
grade.orderedset(c(2,1), "[1,2]") # FALSE
grade.set(c(1,2), "[1.1,2]", tolerance=".01") # FALSE
grade.set(c(1,2,3,4,5), "(5,4,3,2,1)") # TRUE
grade.set(c(1,2,3,4,5), "(5,4,3,2)") # FALSE
grade.orderedset("[NA, 1, 2]", c(NA, 1, 2)) #FALSE, usena=F
grade.orderedset("[NA, 1, 2]", c(NA, 1, 2), quiet=FALSE) # FALSE, but with warning
grade.orderedset("[NA, 1, 2]", c(NA, 1, 2), usena=TRUE) # TRUE
[Package grade version 0.2-1 Index]