Description Usage Arguments Value Author(s) See Also Examples
A little helper function to check if the argument is a sample size, i.e.,
a single natural number larger than zero.
This function is used to check the input to
ScaledNormalData and ExponentialData.
1 |
n |
The argument to test. Vectors return |
"TRUE" if is n is numeric, positive, integer, and has length 1;
otherwise "FALSE".
Gero Walter
is.integer checks for R's internal type integer,
and not if its argument is an integer in the mathematical sense.
1 2 | is.samplesize(1) # TRUE
is.samplesize(1:10) # FALSE
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.