An alpha level must be numeric(1) greater than 0 and less than 1.

isAlpha(x, .xname = getNameInParent(x))

Arguments

x

Object.

.xname

Name of object defined in x. Not intended to be used directly.

Value

TRUE on success; FALSE on failure, with cause set.

Note

Updated 2019-08-10.

Examples

## TRUE ==== isAlpha(0.05)
#> [1] TRUE
## FALSE ==== isAlpha("xxx")
#> [1] FALSE #> Cause: '"xxx"' is not scalar double.
isAlpha(1L)
#> [1] FALSE #> Cause: '1L' is not scalar double.