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.


StevenMMortimer/salesforcer documentation built on Nov. 7, 2024, 4:23 p.m.