check.positive | R Documentation |
This function checks whether variable satisfies the following requirements:
The class of the variable is numeric
.
The length of the variable is 1.
The variable is strictly positive.
If not, an error message is displayed.
check.positive(x, name.var)
x |
The variable to be checked. |
name.var |
The name of the variable. |
Nothing is returned.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.