grade-package {grade} | R Documentation |
Grade
Description
Binary Grading functions for R.
Details
Package: | grade |
Version: | 0.2 |
Date: | 2009-02-20 |
Title: | Grade |
Author: | Leif Johnson <leif.t.johnson@gmail.com> |
Maintainer: | Leif Johnson <leif.t.johnson@gmail.com> |
URL: | http://www.stat.umn.edu/~leif/software/grade/ |
Depends: | R (>= 2.4.1) |
Description: | Binary Grading functions for R. |
License: | GPL-2 |
Packaged: | Fri Feb 20 10:28:59 2009; leif |
Index:
\link{grade.discreteprobability} Grade Discrete Probability Sets \link{grade.interval} Grade Intervals \link{grade.isscalar} Check if an object is a scalar \link{grade.negative} Check the Sign of a Number \link{grade.number} Grade Single Numbers \link{grade.orderedset} Grade Ordered Sets \link{grade.parse} Parse input \link{grade.parsechunk} \link{grade.parseset} \link{grade.set} Grade Sets \link{grade.truefalse} True/False answers
Note
There are some common arguments across all of the grade functions. These are:
correctans
Input to be the correct answer. May be a string or a vector. Checks are likely to be more stringent on this component and result in more errors. E.g.grade.interval
requires thatcorrectans
have length 2.studentans
Input to check for correctness. May be a string or a vector. Most of thegrade
functions check it againstcorrectans
useeval
TRUE
orFALSE
. IfTRUE
eval
is used to evaluate text elements. IfFALSE
as.numeric
is used to evaluate text elements. The advantage of usingeval
is more forgiveness for input, e.g.eval
of "pi" returns3.1415
, oreval
of "1/2" returns0.5
, butas.numeric
returnsNA
in each case. The disadvantage is thateval
could be abused to run arbitrary code leading to a security issue. However, thegrade
package does not submit any text to eithereval
oras.numeric
that contains any of the characters '[', ']', '(', ')', '<', '>', '=' or ','. It is unlikely that code containing function calls could be inserted. Souseeval
defaults toTRUE
. If there are problems, or you are worried, you can always setuseeval=FALSE
.usena
TRUE
orFALSE
. IfTRUE
,NA
is considered to be a valid number. IfFALSE
,NA
is considered to be invalid. Default isusena=FALSE
.useinf
TRUE
orFALSE
. IfTRUE
,Inf
and-Inf
are considered to be valid numbers. IfFALSE
,Inf
and-Inf
are considered to be invalid. Default isuseinf=FALSE
.quiet
TRUE
orFALSE
. IfFALSE
, errors or bad input result in more warning messages. Default isquiet=TRUE
.
Author(s)
Leif Johnson <leif.t.johnson@gmail.com>
Maintainer: Leif Johnson <leif.t.johnson@gmail.com>
References
http://www.stat.umn.edu/~leif/software/grade