set_null_elements_to_na: Set all NULL or zero-length elements from list to NA

View source: R/utils-query.R

set_null_elements_to_naR Documentation

Set all NULL or zero-length elements from list to NA

Description

This function is a simple modify_if function to replace zero-length elements (includes NULL) to NA in a one-level list.

Usage

set_null_elements_to_na(x)

Arguments

x

list; a list to be cleaned.

Value

list containing NA in place of NULL element values.

Note

This function is meant to be used internally. Only use when debugging.


salesforcer documentation built on March 18, 2022, 6:26 p.m.