is_all_list_elements_null_or_df {csutil}R Documentation

Are all elements in a list null or data.frames?

Description

Checks if A) 'x' is a list, B) All elements in 'x' are either null or data.frame.

Usage

is_all_list_elements_null_or_df(x)

Arguments

x

An object

Value

Boolean.

Examples

is_all_list_elements_null_or_df(data.frame())
is_all_list_elements_null_or_df(list(data.frame()))
is_all_list_elements_null_or_df(list(1, NULL))
is_all_list_elements_null_or_df(list(data.frame(), NULL))
is_all_list_elements_null_or_df(list("a"=1, 2))

[Package csutil version 2023.4.25 Index]