is_true

0th

Percentile

Is object identical to TRUE or FALSE?

These functions bypass R's automatic conversion rules and check that x is literally TRUE or FALSE.

Usage
is_true(x)

is_false(x)

Arguments
x

object to test

Aliases
  • is_true
  • is_false
Examples
# NOT RUN {
is_true(TRUE)
is_true(1)

is_false(FALSE)
is_false(0)
# }
Documentation reproduced from package rlang, version 0.1.6, License: GPL-3

Community examples

Looks like there are no examples yet.