Learn R Programming

paws.common (version 0.8.2)

is_empty_xml: Check whether an object is empty for xml builds

Description

Check whether an object is empty, e.g. has no sub-elements, is NA

Usage

is_empty_xml(x)

Arguments

x

An object.

Examples

Run this code
is_empty_xml(NA) # TRUE
is_empty_xml(list()) # TRUE
is_empty_xml(list(list())) # TRUE

is_empty_xml(1) # FALSE
is_empty_xml("") # FALSE
is_empty_xml(list(1)) # FALSE
is_empty_xml(list(list(1))) # FALSE

Run the code above in your browser using DataLab