isTRUEorFALSE check if object is a flag (a length one logical vector) except NA.

isTRUEorFALSE(x)

Arguments

x

object to test.

Value

Logical indicating if object is TRUE or FALSE flag