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)

acidgenomics/r-goalie documentation built on Jan. 12, 2024, 4:15 a.m.