| 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:
correctansInput 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.intervalrequires thatcorrectanshave length 2.studentansInput to check for correctness. May be a string or a vector. Most of thegradefunctions check it againstcorrectansuseevalTRUEorFALSE. IfTRUEevalis used to evaluate text elements. IfFALSEas.numericis used to evaluate text elements. The advantage of usingevalis more forgiveness for input, e.g.evalof "pi" returns3.1415, orevalof "1/2" returns0.5, butas.numericreturnsNAin each case. The disadvantage is thatevalcould be abused to run arbitrary code leading to a security issue. However, thegradepackage does not submit any text to eitherevaloras.numericthat contains any of the characters '[', ']', '(', ')', '<', '>', '=' or ','. It is unlikely that code containing function calls could be inserted. Souseevaldefaults toTRUE. If there are problems, or you are worried, you can always setuseeval=FALSE.usenaTRUEorFALSE. IfTRUE,NAis considered to be a valid number. IfFALSE,NAis considered to be invalid. Default isusena=FALSE.useinfTRUEorFALSE. IfTRUE,Infand-Infare considered to be valid numbers. IfFALSE,Infand-Infare considered to be invalid. Default isuseinf=FALSE.quietTRUEorFALSE. 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