Does the input contain a boolean flag?
Examples
## TRUE ====
isFlag(TRUE)
#> [1] TRUE
isFlag(FALSE)
#> [1] TRUE
## FALSE ====
isFlag(c(TRUE, TRUE))
#> [1] FALSE
isFlag(1)
#> [1] FALSE
isFlag(NA)
#> [1] FALSE
Does the input contain a boolean flag?
## TRUE ====
isFlag(TRUE)
#> [1] TRUE
isFlag(FALSE)
#> [1] TRUE
## FALSE ====
isFlag(c(TRUE, TRUE))
#> [1] FALSE
isFlag(1)
#> [1] FALSE
isFlag(NA)
#> [1] FALSE