Learn R Programming

GROAN (version 1.3.1)

is.boolean: Is a boolean?

Description

Returns TRUE if the passed x variable is a length one variable containing a valid TRUE/FALSE value. This test is stricter than function is.logical, since NA, NULL and NaN all return FALSE. Moreover, only single cell (length one) array admitted.

Usage

is.boolean(x)

Value

a boolean

Arguments

x

the variable to be checked