NA
R/utils.R
na_empty.Rd
Return NA if an object is empty.
na_empty(x)
An object.
NA if x is empty (length(x) == 0), otherwise x.
x
length(x) == 0
na_empty(integer()) #> [1] NA