is.boolean: Is a boolean?

View source: R/common.R

is.booleanR Documentation

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)

Arguments

x

the variable to be checked

Value

a boolean


GROAN documentation built on Nov. 28, 2022, 5:07 p.m.