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

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

Arguments

x

Object.

.xname

Not intended to be used directly.

Value

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

Examples

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