is_blank: Test If An Object Is Empty

Description Usage Arguments Value Examples

Description

An empty object is any of the following: NULL, NA or vector of NAs, Object of length 0, '' if empty_str_triggers equals to TRUE, and FALSE if false_triggers equals to TRUE

Usage

1
is_blank(obj, empty_str_triggers = TRUE, false_triggers = FALSE)

Arguments

obj

Object: an object to be tested

empty_str_triggers

Logical: TRUE (default) treats empty string (i.e. '') as empty and FALSE otherwise

false_triggers

Logical: TRUE treats logical value FALSE as empty and FALSE (default) otherwise

Value

A logical value that indicates whether the tested object is empty or not

Examples

1
2

statech/CommonPlots documentation built on May 6, 2019, 1:32 a.m.