isempty: tests the nullness of objects

Description Usage Arguments Details Value Examples

View source: R/f1.rbsb2.code.r

Description

Returns TRUE is the structure is empty.
This trick was proposed because the NULL cannot replace any kind of objects. Generally, constant finishing with 0 like rbsb.lis0, rbsb.dfr0... are null objects.
Notice that isempty("") is FALSE.

Usage

1

Arguments

x

object to be scrutinazed

Details

see the code to know the list.

Value

TRUE when the object is considered as empty FALSE if not

Examples

1
2
3
4
5
 rbsb3k("RESET"); # needed only for R checking, to be forgotten
 isempty(numeric(0));
 isempty(NULL);
 isempty(rbsb.fau0);
 isempty("");

rbsb documentation built on May 31, 2017, 1:45 a.m.