Skip to contents

Opposite of is.logical(). Check if entry is a logical object

Usage

not.logical(x)

Arguments

x

vector entry

Value

a boolean value to indicate if entry is logical

Examples

test.env <- TRUE
test.notenv <- 0
not.logical(test.env) # FALSE
#> [1] FALSE
not.logical(test.notenv) # TRUE
#> [1] TRUE
if(not.logical(test.notenv)) message("yes") # yes
#> yes