is_nullish: Is x nullish?

View source: R/misc.R

is_nullishR Documentation

Is x nullish?

Description

Sometimes useful to have flexible input to disable a feature that accepts NULL, NA, or F as meaning "no".

Usage

is_nullish(x, false = T, na = T, zero = T, null = T)

Arguments

x

Length 0 or 1 input

false

Whether False means "no"

na

Whether NA means "no"

zero

Whether 0 means "no"

null

Whether NULL means "no"

Value

Logical scalar

Examples

is_nullish(NULL)
is_nullish(NA)
is_nullish(F)
is_nullish(0)
is_nullish(NA, na = F)

Deleetdk/kirkegaard documentation built on May 8, 2024, 12:27 a.m.