NULL
NA
R/helpers.R
h_null_if_na.Rd
A simple helper function that replaces NA object by NULL object.
h_null_if_na(x)
(any) atomic object of length 1. For the definition of "atomic", see is.atomic().
any
1
is.atomic()
NULL if x is NA, otherwise, x.
x
h_null_if_na(NA) #> NULL