Truthy: Truthy

Description Usage Arguments Value See Also Examples

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

functools documentation built on May 2, 2019, 5:39 a.m.