R/UTILITY_FUNCTIONS.R
replace_null.Rd
Replace all the empty values in a list
replace_null(x)
A list
list(a = NULL, b = 1, c = list(foo = NULL, bar = NULL)) %>% replace_null() #> $a #> [1] NA #> #> $b #> [1] 1 #> #> $c #> $c$foo #> NULL #> #> $c$bar #> NULL #> #>