Learn R Programming

beautier (version 2.6.12)

is_one_bool: Check if the argument is one boolean

Description

Check if the argument is one boolean

Usage

is_one_bool(x)

Value

TRUE if the argument is one boolean, FALSE otherwise

Arguments

x

the argument to be tested to be boolean

Author

Richèl J.C. Bilderbeek

Examples

Run this code
check_empty_beautier_folder()

# TRUE
is_one_bool(TRUE)
is_one_bool(FALSE)

# FALSE
is_one_bool(NULL)
is_one_bool(NA)
is_one_bool(c())
is_one_bool("nonsense")
is_one_bool(is_one_bool)
is_one_bool(c(TRUE, FALSE))

check_empty_beautier_folder()

Run the code above in your browser using DataLab