isnothing: isnothing

Description Usage Arguments Value Examples

View source: R/scripts.R

Description

Shorthand for checking if an object is nothing, e.g. of length 0 (including NULL), or NA, or ” or 0.

Usage

1
isnothing(x, nothing = list(0, ""))

Arguments

x

If length is greater than 1, will return TRUE if at least one element is nothing.

nothing

list of values that count as nothing (used in addition to NA and the condition of positive length)

Value

TRUE or FALSE

Examples

1
#

rushkin/bitsandends documentation built on Oct. 21, 2020, 11:43 a.m.