not: not

Description Usage Arguments Details Value Author(s) Examples

View source: R/functions.R

Description

invert a bool value, i.e. TRUE => FALSE, FALSE => TRUE

Usage

1
not(bool)

Arguments

bool

The bool to invert TRUE/FALSE

Details

Instead of the traditional inversion of boolean values using !(bool), here we provide a more lispy style inversion function called 'not'. This can be applied to boolean functions as a simple function call.

Value

Inverse bool of input

Author(s)

Jay Morgan

Examples

1
2
3
4
5
6
## Not run: 
(not TRUE)
(not FALSE)
(not (== 1 1))

## End(Not run)

jaypmorgan/slurp documentation built on Dec. 20, 2021, 10 p.m.