Description Details Note Author(s) References
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:
1 2 3 4 5 6 7 8 9 10 11 12 | \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
|
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 that correctans
have length 2.
studentans
Input to check for correctness. May be a string
or a vector. Most of the grade
functions check it against
correctans
useeval
TRUE
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
.
usena
TRUE
or FALSE
. If TRUE
, NA
is considered to be a valid number. If FALSE
, NA
is considered to be invalid. Default is usena=FALSE
.
useinf
TRUE
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
.
quiet
TRUE
or FALSE
. If FALSE
, errors
or bad input result in more warning messages. Default is
quiet=TRUE
.
Leif Johnson <leif.t.johnson@gmail.com>
Maintainer: Leif Johnson <leif.t.johnson@gmail.com>
http://www.stat.umn.edu/~leif/software/grade
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.