is.samplesize: Function to check if the argument is a sample size, i.e., a...

Description Usage Arguments Value Author(s) See Also Examples

Description

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.

Usage

1

Arguments

n

The argument to test. Vectors return "FALSE".

Value

"TRUE" if is n is numeric, positive, integer, and has length 1; otherwise "FALSE".

Author(s)

Gero Walter

See Also

is.integer checks for R's internal type integer, and not if its argument is an integer in the mathematical sense.

Examples

1
2
is.samplesize(1)    # TRUE
is.samplesize(1:10) # FALSE

luck documentation built on May 2, 2019, 4:43 p.m.