check-scalar-isFlag: Does the input contain a boolean flag?

check-scalar-isFlagR Documentation

Does the input contain a boolean flag?

Description

Does the input contain a boolean flag?

Usage

isFlag(x)

Arguments

x

Object.

Value

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

Note

Updated 2019-08-10.

Examples

## TRUE ====
isFlag(TRUE)
isFlag(FALSE)

## FALSE ====
isFlag(c(TRUE, TRUE))
isFlag(1)
isFlag(NA)

steinbaugh/goalie documentation built on Jan. 17, 2024, 5:16 p.m.