Truthy: Tests the "truthiness" of an object.

Description Usage Arguments Value See Also Examples

View source: R/Truthy.R

Description

Truthy() returns TRUE or FALSE if an object is TRUE or not. An object is is "TRUE" if it is exists and is TRUE.

Usage

1
Truthy(.x)

Arguments

.x

an object.

Value

a logical value.

See Also

Other predicate functions: Existy

Examples

1
2
3
4
5
6
7
8
9
# Returns if a value exists or not:
Truthy(TRUE) # TRUE
Truthy(FALSE) # FALSE
Truthy(NULL) # FALSE
Truthy(NA) # FALSE
Truthy(2L) # TRUE
Truthy(1L) # TRUE
Truthy(0L) # FALSE
Truthy("a") # TRUE

paulhendricks/functools documentation built on May 24, 2019, 8:41 p.m.