dot-is_boolean: Boolean

.is_booleanR Documentation

Boolean

Description

Checks if provided object is a Boolean i.e. a length-one logical vector.

Usage

.is_boolean(x)

Arguments

x

an object to check.

Value

a logical value indicating whether provided object is a Boolean.

Note

Taken from https://github.com/Rapporter/rapportools/blob/master/R/utils.R

Examples

is_boolean(TRUE) # [1] TRUE
# the following will work on most systems, unless you have tweaked global Rprofile
.is_boolean(T) # [1] TRUE
.is_boolean(1) # [1] FALSE

ropensci/nasapower documentation built on June 8, 2025, 4:21 a.m.