powered by
studentans
correctans
grade.negative(correctans=NULL, studentans, tolerance=0.01, useeval=TRUE, usena=FALSE, useinf=FALSE, quiet=TRUE)
numeric
string
TRUE
FALSE
NA
Inf
-Inf
tolerance
grade
grade.set
grade.number
grade.negative(studentans=0, "1") # FALSE grade.negative(NULL, "1.1", tolerance=".01") # FALSE grade.negative("soup", "-.1", tolerance=.05) # TRUE
Run the code above in your browser using DataLab