fix_0_length_list_elements: Return NA for any given value whose length is 0

fix_0_length_list_elementsR Documentation

Return NA for any given value whose length is 0

Description

This is originally built to be used on each element of a list inside an lapply where you're trying to get rid of NULLs, numeric(0)s, etc. in a list to be converted to a data frame.

Usage

fix_0_length_list_elements(value)

Arguments

value

any value

Value

NA or the input argument


langfob/bdpg documentation built on Dec. 8, 2022, 5:33 a.m.