| grade-package {grade} | R Documentation |
Binary Grading functions for R.
| 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:
grade.discreteprobability
Grade Discrete Probability Sets
grade.interval Grade Intervals
grade.isscalar Check if an object is a scalar
grade.negative Check the Sign of a Number
grade.number Grade Single Numbers
grade.orderedset Grade Ordered Sets
grade.parse Parse input
grade.parsechunk
grade.parseset
grade.set Grade Sets
grade.truefalse True/False answers
There are some common arguments across all of the grade functions. These are:
correctansgrade.interval
requires that correctans have length 2.studentansgrade functions check it against
correctansuseevalTRUE or FALSE. If TRUE
eval is used to evaluate text elements. If
FALSE as.numeric is used to evaluate text
elements. The advantage of using eval is more forgiveness
for input, e.g. eval of "pi" returns 3.1415, or eval
of "1/2" returns 0.5, but as.numeric returns
NA in each case. The disadvantage is that eval
could be abused to run arbitrary code leading to a security
issue. However, the grade package does not submit any text
to either eval or as.numeric that contains any of
the characters '[', ']', '(', ')', '<', '>', '=' or ','. It is unlikely that
code containing function calls could be inserted. So
useeval defaults to TRUE. If there are problems, or
you are worried, you can always set useeval=FALSE.usenaTRUE or FALSE. If TRUE, NA
is considered to be a valid number. If FALSE, NA
is considered to be invalid. Default is usena=FALSE.useinfTRUE or FALSE. If TRUE,
Inf and -Inf are considered to be valid numbers. If
FALSE, Inf and -Inf are considered to be
invalid. Default is useinf=FALSE.quietTRUE or FALSE. If FALSE, errors
or bad input result in more warning messages. Default is
quiet=TRUELeif Johnson <leif.t.johnson@gmail.com>
Maintainer: Leif Johnson <leif.t.johnson@gmail.com>
http://www.stat.umn.edu/~leif/software/grade