Description Usage Arguments Value See Also Examples
Tests the input for being a scalar value and checks the class of the scalar. This function is meant to be used internally for function input argument verification and typically will not be used otherwise.
1 | checkScalarType(x, isType="numeric")
|
x |
an S-PLUS object. |
isType |
a character string defining the class of the
object to be checked ala |
no output is returned. If these tests fail, a stop
condition
is executed.
isVectorAtomic
, checkVectorType
, checkRange
.
1 2 3 4 | ## expect no output from the following calls
checkScalarType(pi,"numeric")
checkScalarType(100,"integer")
checkScalarType(letters[1],"character")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.