Returns a NA character for empty values

.replace_empty_na(val)

Arguments

val

a value that can either be empty, or not empty

Value

NA_character where the extracted value is empty, or the value itself